Skip to content

Instantly share code, notes, and snippets.

@mohanadkaleia
Created December 9, 2019 07:06
Show Gist options
  • Save mohanadkaleia/f4bd1cdee20d1d0e0ceb42e1ddc9d664 to your computer and use it in GitHub Desktop.
Save mohanadkaleia/f4bd1cdee20d1d0e0ceb42e1ddc9d664 to your computer and use it in GitHub Desktop.
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
source /usr/local/git/contrib/completion/git-completion.bash
GIT_PS1_SHOWDIRTYSTATE=true
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment