diff options
author | johannst <stoelp@eit.uni-kl.de> | 2018-04-07 21:22:29 +0900 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2018-04-07 21:22:29 +0900 |
commit | 046c2d8253f98e19259280e0fff0634eb87bfa43 (patch) | |
tree | 5186601af599088a15fc506a11a1e722fa058ea6 | |
parent | eceaecd97660181704c9f63c5b188a9d17299d8c (diff) | |
download | dotfiles-046c2d8253f98e19259280e0fff0634eb87bfa43.tar.gz dotfiles-046c2d8253f98e19259280e0fff0634eb87bfa43.zip |
bashrc: reverted exit code formater in PS1 as I didn't get color escaping right which is returned from formater function
-rw-r--r-- | bashrc | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -119,13 +119,13 @@ function save_exit_code() { echo "$1" > $2 } -#export PS1="\[${BCol_BrightRed}\]::\[${BCol_MediumGray}\]\u\[${BCol_BrightRed}\]::\[${BCol_LightGray}\]\H\[${BCol_BrightRed}\]:\[${BCol_DarkGray}\]$(tty) \[${BCol_LightGray}\] - \[${BCol_DarkBlue}\]\w\n\ -#\[${BCol_NoColor}\][\$(ret=\$?; if [[ \$ret == 0 ]]; then echo \"\[${BCol_BrightGreen}\]\$ret\"; else echo \"\[${BCol_BrightRed}\]\$ret\"; fi)\[${BCol_NoColor}\]] \$> " -export PS1="\$(save_exit_code \$? ~/.bash_exit)\ -\[${BCol_BrightRed}\]::\[${BCol_MediumGray}\]\u\[${BCol_BrightRed}\]\ -::\[${BCol_LightGray}\]\H\[${BCol_BrightRed}\]\ -:\[${BCol_DarkGray}\]$(tty)\[${BCol_LightGray}\] - \[${BCol_DarkBlue}\]\w\n\ -\[${BCol_NoColor}\][\$(return_val_formater \$(cat ~/.bash_exit))\[${BCol_NoColor}\]] \$> " +export PS1="\[${BCol_BrightRed}\]::\[${BCol_MediumGray}\]\u\[${BCol_BrightRed}\]::\[${BCol_LightGray}\]\H\[${BCol_BrightRed}\]:\[${BCol_DarkGray}\]$(tty) \[${BCol_LightGray}\] - \[${BCol_DarkBlue}\]\w\n\ +\[${BCol_NoColor}\][\$(ret=\$?; if [[ \$ret == 0 ]]; then echo \"\[${BCol_BrightGreen}\]\$ret\"; else echo \"\[${BCol_BrightRed}\]\$ret\"; fi)\[${BCol_NoColor}\]] \$> " +#export PS1="\$(save_exit_code \$? ~/.bash_exit)\ +#\[${BCol_BrightRed}\]::\[${BCol_MediumGray}\]\u\[${BCol_BrightRed}\]\ +#::\[${BCol_LightGray}\]\H\[${BCol_BrightRed}\]\ +#:\[${BCol_DarkGray}\]$(tty)\[${BCol_LightGray}\] - \[${BCol_DarkBlue}\]\w\n\ +#\[${BCol_NoColor}\][\$(return_val_formater \$(cat ~/.bash_exit))\[${BCol_NoColor}\]] \$> " #\[${BCol_NoColor}\][\$(ret=\$(cat ~/.bash_exit); if [[ \$ret == 0 ]]; then echo \"\[${BCol_BrightGreen}\]\$ret\"; else echo \"\[${BCol_BrightRed}\]\$ret\"; fi)\[${BCol_NoColor}\]] \$> " #$export PROMPT_COMMAND="echo -e ''" |