Skip to content

Instantly share code, notes, and snippets.

@mrveera
Created July 25, 2019 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrveera/9afcfb16c0775a08ed366850d00b9bbf to your computer and use it in GitHub Desktop.
Save mrveera/9afcfb16c0775a08ed366850d00b9bbf to your computer and use it in GitHub Desktop.
export CLICOLOR=1
export LSCOLORS=Gxfxcxdxbxegedabagacad
[[ -f $HOME/.dircolors ]] && eval $(dircolors -b $HOME/.dircolors)
if $_isxrunning; then
[[ -f $HOME/.dircolors_256 ]] && eval $(dircolors -b $HOME/.dircolors_256)
export TERM='xterm-256color'
B='\[\e[1;38;5;33m\]'
LB='\[\e[1;38;5;81m\]'
GY='\[\e[1;38;5;242m\]'
G='\[\e[1;38;5;82m\]'
P='\[\e[1;38;5;161m\]'
PP='\[\e[1;38;5;93m\]'
R='\[\e[1;38;5;196m\]'
Y='\[\e[1;38;5;214m\]'
W='\[\e[0m\]'
get_prompt_symbol() {
[[ $UID == 0 ]] && echo "#" || echo "\$"
}
if [[ $PS1 && -f /usr/share/git/git-prompt.sh ]]; then
source /usr/share/git/completion/git-completion.bash
source /usr/share/git/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=0
#export PS1="$GY[$Y\u$GY@$P\h$GY:$B\W\$(__git_ps1 \"$GY|$LB%s\")$GY]$W\$(get_prompt_symbol) "
export PS1="$GY[$Y\u$GY@$P\h$GY:$B\W\$(__git_ps1 \"$GY|$LB%s\")$GY]$W\$(get_prompt_symbol) "
else
#export PS1="$GY[$Y\u$GY@$P\h$GY:$B\w$GY]$W\$(get_prompt_symbol) "
export PS1="$GY[$Y\u$GY:$B\w$GY]$W\$(get_prompt_symbol) "
fi
else
export TERM='xterm-color'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment