skel: .bash_aliases: add example of return code indication in bash prompt
This commit is contained in:
@@ -79,6 +79,13 @@ export HISTCONTROL=erasedups:ignoredups:ignorespace
|
|||||||
#bind "set completion-ignore-case on"; fi
|
#bind "set completion-ignore-case on"; fi
|
||||||
#bind "set show-all-if-ambiguous On"; fi
|
#bind "set show-all-if-ambiguous On"; fi
|
||||||
|
|
||||||
|
# show a ✔ or ✕ symbol before the prompt depending on return code of previous command
|
||||||
|
# $(__exit_code_block) must be added to your $PS1
|
||||||
|
#function __exit_code_block() {
|
||||||
|
# if [[ "$?" == 0 ]]; then echo -e "✔ ";
|
||||||
|
# else echo -e "✕ "; fi
|
||||||
|
#}
|
||||||
|
|
||||||
####### Colored manpages ##########
|
####### Colored manpages ##########
|
||||||
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
|
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
|
||||||
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
|
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
|
||||||
|
|||||||
Reference in New Issue
Block a user