Make bash prompt more recognizable
author |
Steve Losh <steve@stevelosh.com> |
date |
Fri, 24 Jan 2020 12:34:37 -0500 |
parents |
09b49bc1fd02
|
children |
f92e74e96687
|
branches/tags |
(none) |
files |
bash_profile |
Changes
--- a/bash_profile Thu Jan 23 23:36:10 2020 -0500
+++ b/bash_profile Fri Jan 24 12:34:37 2020 -0500
@@ -18,11 +18,12 @@
fi
D=$'\e[37m'
-PINK=$'\e[35m'
+RED=$'\e[31m'
GREEN=$'\e[32m'
ORANGE=$'\e[33m'
-RED=$'\e[31m'
-CYAN=$'\e[34m'
+BLUE=$'\e[34m'
+PINK=$'\e[35m'
+CYAN=$'\e[36m'
function last_return_value() {
x="$?"
@@ -36,12 +37,12 @@
}
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
- HOST_COLOR="$CYAN"
+ HOST_COLOR="$BLUE"
else
HOST_COLOR="$ORANGE"
fi
-export PS1='\n${PINK}\u ${D}at ${HOST_COLOR}\h ${D}in ${GREEN}\w${D}\n$(last_return_value)$ '
+export PS1='\n${PINK}\u ${D}at ${HOST_COLOR}\h ${D}in ${GREEN}\w${D} $(last_return_value)$ '
alias ..="cd .."
alias ...="cd ../.."