Skip to content

Instantly share code, notes, and snippets.

@WimObiwan
Last active August 25, 2017 11:03
Show Gist options
  • Save WimObiwan/7dd7000a4c0da0d70b7b52d9fcece21c to your computer and use it in GitHub Desktop.
Save WimObiwan/7dd7000a4c0da0d70b7b52d9fcece21c to your computer and use it in GitHub Desktop.
# 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