Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # enable programmable completion features (you don't need to enable
- # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
- # sources /etc/bash.bashrc).
- if ! shopt -oq posix; then
- if [ -f /usr/share/bash-completion/bash_completion ]; then
- . /usr/share/bash-completion/bash_completion
- elif [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
- fi
- function nonzero_return() {
- RETVAL=$?
- [ $RETVAL -ne 0 ] && echo "$RETVAL"
- }
- export PS1="[\[\e[35m\]\`nonzero_return\`\[\e[m\]][\[\e[34m\]\A\[\e[m\]] \[\e[36m\]\u\[\e[m\]:\[\e[32m\]\w\[\e[m\]\[\e[37m\]\\$\[\e[m\] "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement