jseifer (owner)

Revisions

gist: 5965 Download_button fork
public
Public Clone URL: git://gist.github.com/5965.git
Embed All Files: show embed
Bash #
1
2
3
4
5
6
7
8
9
10
# ~/.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
Bash #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# ~/.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)/'
}