Skip to content

Instantly share code, notes, and snippets.

@naithar
Created December 31, 2016 09:00
Show Gist options
  • Save naithar/b0bd8ee7af94a96ea75dbce33f3339a8 to your computer and use it in GitHub Desktop.
Save naithar/b0bd8ee7af94a96ea75dbce33f3339a8 to your computer and use it in GitHub Desktop.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="[\t] \[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\[\033[31m\]\$(parse_git_branch)\[\033[00m\]$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
export LC_COLLATE=ru_RU.UTF-8
export LANG=en_US.UTF-8
LANG=en_US.UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment