Skip to content

Instantly share code, notes, and snippets.

@WimObiwan
Created May 4, 2016 08:14
Show Gist options
  • Save WimObiwan/ea215b106c7551624d3223549c097fb2 to your computer and use it in GitHub Desktop.
Save WimObiwan/ea215b106c7551624d3223549c097fb2 to your computer and use it in GitHub Desktop.
Default .bashrc
# Rename/move to ~/.bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
#alias telnet="telnet -e ^["
alias ll="ls -l"
# 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