Created
August 18, 2008 14:05
-
-
Save jseifer/5965 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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