Skip to content

Instantly share code, notes, and snippets.

@jseifer
Created August 18, 2008 14:05
Show Gist options
  • Save jseifer/5965 to your computer and use it in GitHub Desktop.
Save jseifer/5965 to your computer and use it in GitHub Desktop.
# ~/.inputrc
# Filename completion regardless of case
set show-all-if-ambiguous On
set completion-ignore-case on
# Search history backwards and forwards with Esc-p and up/down arrows
"\ep": history-search-backward
"\e[A": history-search-backward
"\e[B": history-search-forward
# ~/.bashrc
# Append to history instead of erase
export HISTCONTROL=erasedups
export HISTSIZE=10000
shopt -s histappend
# Git branch in prompt
export PS1="\[\e[32;1m\]\u@\[\e[1;36m\]\h:\[\e[1;33m\]\w \$(parse_git_branch)$ \[\e[0m\]"
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