# ~/.bashrc # # Source the originaly generated bashrc . ~/SetupCockpit/dotfiles/bash/original_bashrc # On Arch Linux, source pkgfile "command not found" hook if [ -e /usr/share/doc/pkgfile/command-not-found.bash ]; then source /usr/share/doc/pkgfile/command-not-found.bash fi # Enable colored less output export LESS_TERMCAP_mb=$'\e[1;32m' export LESS_TERMCAP_md=$'\e[1;32m' export LESS_TERMCAP_me=$'\e[0m' export LESS_TERMCAP_se=$'\e[0m' export LESS_TERMCAP_so=$'\e[01;33m' export LESS_TERMCAP_ue=$'\e[0m' export LESS_TERMCAP_us=$'\e[1;4;31m' # enable exit status in prompt command PROMPT_COMMAND=__prompt_command __prompt_command() { local EXIT="$?" PS1="" local RCol='\[\e[0m\]' local Red='\[\e[0;31m\]' local Gre='\[\e[0;32m\]' local BYel='\[\e[1;33m\]' local BBlu='\[\e[1;34m\]' local Pur='\[\e[0;35m\]' if [ $EXIT != 0 ]; then PS1+="${Red}\u${RCol}" else PS1+="${Gre}\u${RCol}" fi PS1+="${RCol}@${BBlu}\h${RCol}:${Pur}\w${RCol}$ ${RCol}" } # Enable bash-git-prompt if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then GIT_PROMPT_ONLY_IN_REPO=1 GIT_PROMPT_SHOW_UPSTREAM=1 GIT_PROMPT_THEME=Plague_Doctor source ~/.bash-git-prompt/gitprompt.sh fi if pip show argcomplete >/dev/null 2>&1; then eval "$(register-python-argcomplete schedule_timer)" fi case "$TERM" in xterm-kitty) source <(kitty + complete setup bash);; esac stty -ixon # Disable Ctrl-S and Ctrl-Q