Skip to content

Commit

Permalink
feat(theme): updated the theme, prompt, and bashrc for improved colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Deavon M. McCaffery committed Aug 19, 2016
1 parent 68987fa commit b875434
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 44 deletions.
9 changes: 6 additions & 3 deletions src/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,19 @@ export CLR_BRIGHT_MAGENTA='\033[1;35m' # BRIGHT MAGENTA (PURPLE)
export CLR_BRIGHT_CYAN='\033[1;36m' # BRIGHT CYAN
export CLR_BRIGHT_WHITE='\033[1;37m' # BRIGHT WHITE

export CLR_ROOT_PROMPT=$CLR_RED # COLOR OF THE PROMPT FOR ROOT
export CLR_STAFF_PROMPT=$CLR_BRIGHT_RED # COLOR OF THE PROMPT FOR STAFF
export CLR_USER_PROMPT=$CLR_BRIGHT_BLUE # COLOR OF THE PROMPT FOR USERS
export CLR_ROOT_PROMPT=$CLR_BRIGHT_RED # COLOR OF THE PROMPT FOR ROOT
export CLR_STAFF_PROMPT=$CLR_BRIGHT_GREEN # COLOR OF THE PROMPT FOR STAFF
export CLR_USER_PROMPT=$CLR_BRIGHT_BLUE # COLOR OF THE PROMPT FOR USERS

# enable colors for various commands
export TERM=xterm-256color
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;32'
export CLICOLOR=1

# change ls colors to be more like original unix/linux
export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd"

# other system settings
export EDITOR='nano'
export HISTCONTROL=ignoredubs
Expand Down
32 changes: 16 additions & 16 deletions src/scripts/set-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
source ~/.ssh/scripts/git-prompt.sh

function set-prompt() {
# set the window title
echo -ne "\033]0;${USER}@${HOSTNAME%%.*} ${PWD}\007"
# set the window title
echo -ne "\033]0;${USER}@${HOSTNAME%%.*} ${PWD}\007"

# set the default color
local CLR_PROMPT=$CLR_USER_PROMPT
# set the default color
local CLR_PROMPT=$CLR_USER_PROMPT

# set color for root user
if [ `whoami` == 'root' ]; then
CLR_PROMPT=$CLR_ROOT_PROMPT
fi
# set color for staff user (administrator)
if [ ! -z '`command id -Gn | grep -s -o admin`' ]; then
CLR_PROMPT=$CLR_STAFF_PROMPT
fi
# set color for staff user (administrator)
if [ ! -z '`command id -Gn | grep -s -o admin`' ]; then
CLR_PROMPT=$CLR_STAFF_PROMPT
fi

# set color for root user
if [ $(id -u) -eq 0 ]; then
CLR_PROMPT=$CLR_ROOT_PROMPT
fi

# specify the two-line prompt with color-coded arrow
export PS1="\n\u@\h : \w\n $(__git_ps1 '(%s)')\[${CLR_PROMPT}\] ==> \[${CLR_CLEAR}\]"
# specify the two-line prompt with color-coded arrow
export PS1="\n\u@\h : \w\n $(__git_ps1 '(%s)')\[${CLR_PROMPT}\] ==> \[${CLR_CLEAR}\]"
}

GIT_PS1_SHOWDIRTYSTATE=true
Expand All @@ -28,4 +28,4 @@ GIT_PS1_SHOWUNTRACKEDFILES=true
GIT_PS1_SHOWUPSTREAM="verbose"

# export the prompt command
export PROMPT_COMMAND=set-prompt
export PROMPT_COMMAND=set-prompt
52 changes: 27 additions & 25 deletions src/themes/terminal/Monokai.terminal
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
<key>ANSIBlueColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPEBEw
IDAgMC42MzUyOTQxMTc2ABABgALSEBESE1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29s
b3KiEhRYTlNPYmplY3RfEA9OU0tleWVkQXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztB
SE5bYnZ4en+Kk5uep7m8wQAAAAAAAAEBAAAAAAAAABkAAAAAAAAAAAAAAAAAAADD
AAGGoKMHCA9VJG51bGz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AAAAAAAAN0=
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECww
LjE1Mjk0MTE4MjMgMC4xNTY4NjI3NTA2IDAuMTMzMzMzMzQwMyAwLjg1ABACgALSEBES
E1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVk
QXJjaGl2ZXLRFxhUcm9vdIABCBEaIy0yNztBSE5bYpGTlZqlrra5wtTX3AAAAAAAAAEB
AAAAAAAAABkAAAAAAAAAAAAAAAAAAADe
</data>
<key>CursorBlink</key>
<true/>
Expand Down

0 comments on commit b875434

Please sign in to comment.