Skip to content

Instantly share code, notes, and snippets.

@chitchu
Last active January 15, 2017 23:14
Show Gist options
  • Save chitchu/42c4d8b515cb55394aa37da594d1e22a to your computer and use it in GitHub Desktop.
Save chitchu/42c4d8b515cb55394aa37da594d1e22a to your computer and use it in GitHub Desktop.
# aliases
alias ll='ls -lhGF'
alias lla='ls -alhGF'
alias la='ls -hAF'
alias l='ls -hCF'
#git-completion.bash get it from https://github.com/git/git/blob/master/contrib/completion/git-completion.bash
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash
#Fuzzy finder. Get it from https://github.com/junegunn/fzf
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
#
export HISTCONTROL=ignoreboth:erasedups
# Git branch in prompt.
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
export PS1="\[\033[33;1m\]\w\[\033[m\]:\[\033[36m\]\$(parse_git_branch)\[\033[m\] ⚡ "
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment