PS1 given machines
This commit is contained in:
parent
1361ff6cba
commit
4b8142e96f
8
bash_ps1
8
bash_ps1
|
@ -89,9 +89,13 @@ __git_ps1 ()
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ $HOSTNAME = "intersect" ]; then
|
||||||
|
IntroCol=$BIBlack;
|
||||||
|
else
|
||||||
|
IntroCol=$BIRed;
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PS1=$IntroCol$Time12h$Color_Off'$(git branch &>/dev/null;\
|
||||||
export PS1=$BIBlack$Time12h$Color_Off'$(git branch &>/dev/null;\
|
|
||||||
if [ $? -eq 0 ]; then \
|
if [ $? -eq 0 ]; then \
|
||||||
echo "$(echo `git status` | grep "nothing to commit" > /dev/null 2>&1; \
|
echo "$(echo `git status` | grep "nothing to commit" > /dev/null 2>&1; \
|
||||||
if [ "$?" -eq "0" ]; then \
|
if [ "$?" -eq "0" ]; then \
|
||||||
|
|
10
bashrc
10
bashrc
|
@ -54,11 +54,11 @@ esac
|
||||||
#PS1="\[$RED\]\u\[$DFT$white\]@\[$magenta\]\h \[$DFT\]>>\[$CYAN\]\w \[$DFT\]"
|
#PS1="\[$RED\]\u\[$DFT$white\]@\[$magenta\]\h \[$DFT\]>>\[$CYAN\]\w \[$DFT\]"
|
||||||
#PROMPT_COMMAND='history -a;echo -en "\033[m\033[38;5;2m"$(( `sed -nu "s/MemFree:[\t ]\+\([0-9]\+\) kB/\1/p" /proc/meminfo`/1024))"\033[38;5;22m/"$((`sed -nu "s/MemTotal:[\t ]\+\([0-9]\+\) kB/\1/Ip" /proc/meminfo`/1024 ))MB"\t\033[m\033[38;5;55m$(< /proc/loadavg)\033[m"'
|
#PROMPT_COMMAND='history -a;echo -en "\033[m\033[38;5;2m"$(( `sed -nu "s/MemFree:[\t ]\+\([0-9]\+\) kB/\1/p" /proc/meminfo`/1024))"\033[38;5;22m/"$((`sed -nu "s/MemTotal:[\t ]\+\([0-9]\+\) kB/\1/Ip" /proc/meminfo`/1024 ))MB"\t\033[m\033[38;5;55m$(< /proc/loadavg)\033[m"'
|
||||||
|
|
||||||
if [ "$HOSTNAME" == "chuck" ]; then
|
#if [ "$HOSTNAME" == "chuck" ]; then
|
||||||
MY_HOST_COL='[31m' #ugly !
|
# MY_HOST_COL='[31m' #ugly !
|
||||||
else
|
#else
|
||||||
MY_HOST_COL='[34m'
|
# MY_HOST_COL='[34m'
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
#PS1='\[\e[0;36m\]\t \[\e[1;30m\][\[\e$MY_HOST_COL\]\u@\H\[\e[1;30m\]\[\e[0;32m\]\[\e[1;30m\]] \[\e[1;37m\]\w\[\e[0;37m\] \n$ '
|
#PS1='\[\e[0;36m\]\t \[\e[1;30m\][\[\e$MY_HOST_COL\]\u@\H\[\e[1;30m\]\[\e[0;32m\]\[\e[1;30m\]] \[\e[1;37m\]\w\[\e[0;37m\] \n$ '
|
||||||
source ~/.bash_ps1
|
source ~/.bash_ps1
|
||||||
|
|
Loading…
Reference in a new issue