Skip to content

Instantly share code, notes, and snippets.

@kcarnold
Last active December 15, 2015 12:29
Show Gist options
  • Save kcarnold/5260959 to your computer and use it in GitHub Desktop.
Save kcarnold/5260959 to your computer and use it in GitHub Desktop.
Dreamhost + git bashrc
# ~/.bash_profile: executed by bash(1) for login shells.
source .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
HISTIGNORE=ls:fg
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=10000
HISTFILESIZE=20000
# Colors!
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias lA='ls -A --color=auto'
export EDITOR=nano
# advanced tab completion
if [ "$PS1" -a -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
PS1='[\A] \W$(__git_ps1 " (%s)")\$ '
GIT_PS1_SHOWDIRTYSTATE=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment