diff options
author | David Phillips <david@sighup.nz> | 2017-04-20 17:43:14 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-04-20 17:43:14 +1200 |
commit | 61ddee05adf0934cd5e723f9941d39e15070cbac (patch) | |
tree | 4afe9a5456abe6161fe9e34a25c491f237c49a31 | |
parent | 13ee63ec2a631f517f30528422bc802c9085c820 (diff) | |
download | dotfiles-61ddee05adf0934cd5e723f9941d39e15070cbac.tar.xz |
Clean colour up in bashrc
-rw-r--r-- | bashrc | 59 |
1 files changed, 13 insertions, 46 deletions
@@ -1,48 +1,15 @@ #!/usr/bin/bash -# Reset -Color_Off='\e[0m' -Colour_Off=${Color_Off} - -# Regular Colors -Black='\e[0;30m' -Red='\e[0;31m' -Green='\e[0;32m' -Yellow='\e[0;33m' -Blue='\e[0;34m' -Purple='\e[0;35m' -Cyan='\e[0;36m' -White='\e[0;37m' - -# Bold -BBlack='\e[1;30m' -BRed='\e[1;31m' -BGreen='\e[1;32m' -BYellow='\e[1;33m' -BBlue='\e[1;34m' -BPurple='\e[1;35m' -BCyan='\e[1;36m' -BWhite='\e[1;37m' - -# Underline -UBlack='\e[4;30m' -URed='\e[4;31m' -UGreen='\e[4;32m' -UYellow='\e[4;33m' -UBlue='\e[4;34m' -UPurple='\e[4;35m' -UCyan='\e[4;36m' -UWhite='\e[4;37m' - -# Background -On_Black='\e[40m' -On_Red='\e[41m' -On_Green='\e[42m' -On_Yellow='\e[43m' -On_Blue='\e[44m' -On_Purple='\e[45m' -On_Cyan='\e[46m' -On_White='\e[47m' +c_off='\e[0m' +c_bold='\e[1m' +c_black='\e[30m' +c_red='\e[31m' +c_green='\e[32m' +c_yellow='\e[33m' +c_blue='\e[34m' +c_purple='\e[35m' +c_cyan='\e[36m' +c_white='\e[37m' export HISTSIZE=10000 export HISTTIMEFORMAT="%y-%m-%d %T " @@ -59,9 +26,9 @@ if [ "$TERM" == "st-256color" ]; then fi ############### -PS1="${BYellow}\ -┌[${BGreen}\u${BYellow}@${BBlue}\h${BYellow}][${BPurple}\W${BYellow}"'$(__git_ps1 " (%s)")'"] ${BBlack}<\d \t>${BYellow}\n\ -└╼ \[${Colour_Off}\]" +PS1="${c_bold}${c_yellow}\ +┌[${c_green}\u${c_yellow}@${c_blue}\h${c_yellow}][${c_purple}\W${c_yellow}"'$(__git_ps1 " (%s)")'"] ${c_black}<\d \t>${c_yellow}\n\ +└╼ \[${c_off}\]" ############### source ~/.aliases |