diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-03-26 20:25:06 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-03-26 20:25:06 -0500 |
commit | f60125be8999be68f97f2d31e56310d5a55aa405 (patch) | |
tree | 02b2b701f2a09f6337cbf7d28802105b183002f5 /bash/.bashrc | |
parent | 2786fa32a450c716762bdda879bd2866b500f317 (diff) |
feat: move to sheldon plugin manager
Diffstat (limited to 'bash/.bashrc')
-rw-r--r-- | bash/.bashrc | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 24c8780..25d092d 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -1,3 +1,5 @@ +#!/usr/bin/bash + # Aliases alias ls='ls --color=tty' alias l='ls -lah' @@ -26,26 +28,10 @@ alias dclf="docker compose logs -f" alias dct="docker context" alias dcu="docker context use" -if [ $PS1 && -d "$BASHCOMPDIR" ]; then - for f in $BASHCOMPDIR/*; do - source $f +if [[ $- == *i* ]] && [ -d "$BASHCOMPDIR" ]; then + for f in "$BASHCOMPDIR"/*; do + source "$f" done fi -command -v starship >/dev/null 2>&1 && eval "$(starship init bash)" - -set_win_title() { - local prefix - - if [ "$USER" != "tobyv" ]; then - prefix="${USER} in " - fi - - if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then - prefix="${prefix/in/on}${HOST} in " - fi - - echo -ne "\033]0;${prefix}${PWD/$HOME/~}\007" -} - -starship_precmd_user_func="set_win_title" +command -v starship >/dev/null 2>&1 && source <(starship init bash) |