summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2018-04-07 21:22:29 +0900
committerjohannst <stoelp@eit.uni-kl.de>2018-04-07 21:22:29 +0900
commit046c2d8253f98e19259280e0fff0634eb87bfa43 (patch)
tree5186601af599088a15fc506a11a1e722fa058ea6
parenteceaecd97660181704c9f63c5b188a9d17299d8c (diff)
downloaddotfiles-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--bashrc14
1 files changed, 7 insertions, 7 deletions
diff --git a/bashrc b/bashrc
index f1987d0..203ff61 100644
--- a/bashrc
+++ b/bashrc
@@ -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 ''"