Skip to content

Instantly share code, notes, and snippets.

@johanlunds
Created October 26, 2014 19:35
Show Gist options
  • Save johanlunds/bbd565248a0deb7b67d8 to your computer and use it in GitHub Desktop.
Save johanlunds/bbd565248a0deb7b67d8 to your computer and use it in GitHub Desktop.
# Bash/terminal customization. See man bash(1)
export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\$ "
export HISTCONTROL=erasedups
export HISTSIZE=10000
# This ensures that when you exit a shell, the history
# from that session is _appended_ to ~/.bash_history. Without this,
# you might very well lose the history of entire sessions (rather weird
# that this is not enabled by default).
shopt -s histappend
# colors!
alias ls='ls -G'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# some more ls aliases
alias ll='ls -lahF'
alias l='ls -CF'
alias h="history | grep"
alias be="bundle exec"
# fix nicer font smoothing for external, non-Apple displays
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2
export EDITOR='subl -w -n'
export RBENV_ROOT=/usr/local/var/rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
export PATH=./bin:$PATH
export PATH="$PATH:$HOME/bin"
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment