Skip to content

Instantly share code, notes, and snippets.

@Morrolan
Last active May 21, 2020 11:57
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 Morrolan/8dec0b8c11748493dca68ef3249b5745 to your computer and use it in GitHub Desktop.
Save Morrolan/8dec0b8c11748493dca68ef3249b5745 to your computer and use it in GitHub Desktop.
export PATH
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
ORANGE="\[\033[33m\]"
NO_COLOR="\[\033[0m\]"
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]$ORANGE\$(parse_git_branch)$NO_COLOR\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias we='exa -a'
alias ee='exa -bghl --git --time-style long-iso'
alias ea='exa -abghl --git --time-style long-iso'
alias ce='clear && ee'
alias ca='clear && ea'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment