Skip to content

Instantly share code, notes, and snippets.

@tav
Created June 4, 2013 13:12
Show Gist options
  • Save tav/5705775 to your computer and use it in GitHub Desktop.
Save tav/5705775 to your computer and use it in GitHub Desktop.
# include the user's local bin on the PATH if it exists
if [ -d ~/.local/bin ] ; then
PATH=~/.local/bin:"${PATH}"
fi
# only search directories on cd tab completion
complete -d cd
# ignore case with tab completion
set completion-ignore-case On
alias cd-='cd -'
alias chx='chmod +x'
alias github='git push origin master'
alias ipython='ipython --no-banner'
alias l='ls -G'
alias la='ls -a'
alias ll='ls -al'
alias p='cd ..'
alias pp='cd ../..'
alias ppp='cd ../../..'
alias pppp='cd ../../../..'
alias sl='ls'
alias rmrf='rm -rf'
export CLICOLOR=1
export EDITOR=nano
export HISTCONTROL=ignoreboth
export LSCOLORS=gxbxexdxcxegedabagacad
[ -s "$HOME/.scm_breeze/scm_breeze.sh" ] && source "$HOME/.scm_breeze/scm_breeze.sh"
_parse_git_dirty() {
[ -n "$(\git status --short 2> /dev/null)" ] && echo " ±"
}
export PS1='\[\e[1;32m\]\u\[\e[0;32m\]@\h\[\e[0m\] \w $(__git_ps1 "\e[0;31m\][\e[1;31m\]%s\[\e[0;31m\]$(_parse_git_dirty)] ")\[\e[0m\]➤ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment