Last active
August 25, 2017 11:03
-
-
Save WimObiwan/7dd7000a4c0da0d70b7b52d9fcece21c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prompt (Mathias Weiss, Keynote Sigos) | |
#---($(uname -r))\ | |
export PS1='\e[1;30m\ | |
-== ( RC: $(EXC=$?; if [ $EXC == 0 ] ;then echo \[\e[32m\]OK 0; else echo \[\e[31m\]ERR $EXC; fi)\[\e[0m\] \e[1;30m)\ | |
---(\d \t)\ | |
---($(uptime | grep -o "average:.*" | cut -d: -f 2 | sed -e "s/ //"))\ | |
---[\[\e[0m\] \w \e[1;30m] ==-\n\ | |
\u@\h \W $(if [ "$(id -u)" = "0" ] ; then echo "\[\e[0;31m\]#\[\e[0m\]"; else echo "\[\e[0m\]\[\e[0;35m\]$\[\e[0m\]"; fi)> ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment