X-Git-Url: https://code.delx.au/dotfiles/blobdiff_plain/ab99980b520e6cb471700b31bbda087f2ae3744f..c1872248d369fdfb61c323a676c1706735b3d980:/.bashrc diff --git a/.bashrc b/.bashrc index b38679a..e8502b2 100644 --- a/.bashrc +++ b/.bashrc @@ -1,4 +1,4 @@ -# shellcheck disable=SC1090 # -- Can't follow non-constant source +# shellcheck disable=SC1090 disable=SC1091 # -- Can't follow non-constant source ########################### # Settings for all shells # @@ -61,6 +61,7 @@ export HISTCONTROL='erasedups:ignoredups:ignorespace' export HISTSIZE='100000' export HISTTIMEFORMAT='%F %T ' +[ -r /etc/bash_completion ] && source /etc/bash_completion ################## # Terminal setup # @@ -70,8 +71,10 @@ export HISTTIMEFORMAT='%F %T ' stty -ixon # hostname:workingdir -PROMPT_COMMAND='echo -ne "\\033]0;$(hostname|cut -d. -f1):${PWD/$HOME/~}\\007"' +PROMPT_COMMAND='echo -ne "\\033]0;$(hostname|cut -d. -f1):${PWD/$HOME/\~}\\007"' +# Use dark background colors in apps like vim +export COLORFGBG='15;0' ############# # Fancy PS1 # @@ -90,6 +93,7 @@ function find_up_exists { return 1 } +[ -r /usr/lib/git-core/git-sh-prompt ] && source /usr/lib/git-core/git-sh-prompt [ -r /usr/share/git/completion/git-prompt.sh ] && source /usr/share/git/completion/git-prompt.sh function my_git_ps1 { find_up_exists .git || return @@ -272,3 +276,5 @@ function ssh_unsafe { ########### # The end # ########### + +[ -r ~/.bashrc_local ] && source ~/.bashrc_local