Skip to content

Commit

Permalink
skel: .bash_aliases: add example of return code indication in bash pr…
Browse files Browse the repository at this point in the history
…ompt
  • Loading branch information
nodiscc committed May 3, 2020
1 parent 0a11e2a commit b112296
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/includes.chroot/etc/skel/.bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ export HISTCONTROL=erasedups:ignoredups:ignorespace
#bind "set completion-ignore-case 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 ##########
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
Expand Down

0 comments on commit b112296

Please sign in to comment.