From 4b3a82bb599b4d5be8557750fa96940187b3bc46 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Sun, 16 Apr 2017 22:39:18 -0500 Subject: tweak macos clean script --- macos/bash_profile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 macos/bash_profile (limited to 'macos/bash_profile') diff --git a/macos/bash_profile b/macos/bash_profile new file mode 100644 index 0000000..7eb50b0 --- /dev/null +++ b/macos/bash_profile @@ -0,0 +1,7 @@ +if [[ $(id -u) -eq 0 ]]; then + PS1='\[\e[1;37m\][\[\e[m\]\[\e[1;31m\]\u\[\e[m\]@\[\e[1;37m\]\h\[\e[m\] \[\e[1;36m\]\w\[\e[m\]\[\e[1;37m\]]\[\e[m\]\[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]' +else + PS1='\[\e[1;37m\][\[\e[m\]\[\e[1;32m\]\u\[\e[m\]@\[\e[1;37m\]\h\[\e[m\] \[\e[1;36m\]\w\[\e[m\]\[\e[1;33m\]$(__git_ps1 " (%s)")\[\e[m\] + +# aliases +alias bb='history -c && history -w && rm -f ~/.bash_sessions/* && rm -f .bash_history && reset' -- cgit v1.2.3