Skip to content

Instantly share code, notes, and snippets.

@kbrowder
Created September 5, 2018 23:55
Show Gist options
  • Select an option

  • Save kbrowder/73569c7175bbb4aa1843c43c37510fa4 to your computer and use it in GitHub Desktop.

Select an option

Save kbrowder/73569c7175bbb4aa1843c43c37510fa4 to your computer and use it in GitHub Desktop.
decent bashrc
case $- in
*i*) ;;
*) return;;
esac
HISTSIZE=1000
HISTFILESIZE=2000
shopt -s checkwinsize #check window size after each command
shopt -s globstar #** recurse like git
case "$TERM" in
xterm-256color) color_prompt=yes;;
esac
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment