Created
October 31, 2016 15:19
-
-
Save kanmeiban/f1b29d8a5d0e8982b153164481b16455 to your computer and use it in GitHub Desktop.
Mac OS X bash settings
This file contains hidden or 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
PATH=$PATH:~/bin | |
if [ -f /usr/local/share/chruby/chruby.sh ] && [ -f /usr/local/share/chruby/auto.sh ]; then | |
source /usr/local/share/chruby/chruby.sh | |
source /usr/local/share/chruby/auto.sh | |
chruby ruby-1.9.3-p392 | |
fi | |
if [ -f ~/.git-prompt.sh ]; then | |
source ~/.git-prompt.sh | |
GIT_PS1_SHOWDIRTYSTATE=1 | |
GIT_PS1_SHOWSTASHSTATE=1 | |
GIT_PS1_SHOWUNTRACKEDFILES=1 | |
GIT_PS1_SHOWCOLORHINTS=1 | |
fi | |
if [ -f ~/.git-completion.bash ]; then | |
source ~/.git-completion.bash | |
fi | |
export LANG=bg_BG.UTF-8 | |
export LC_TIME=bg_BG.UTF-8 | |
export PS1="\h:\w\$(__git_ps1 ' (%s)')> " | |
export EDITOR='mate -w' | |
export PAGER=/usr/bin/less | |
shopt -s histappend | |
export HISTFILESIZE=100000000 | |
export HISTSIZE=1000000 | |
HISTTIMEFORMAT="+%Y-%m-%d %H:%M:%S" | |
# Aggressively save history after every command; reset terminal window title after closing SSH session | |
export PROMPT_COMMAND='history -a; echo -ne "\033]0;${ITERM_PROFILE}\007"' | |
export RSYNC_RSH=ssh | |
alias b=bundle | |
alias be='bundle exec' | |
alias gl='git log --oneline' | |
# Homebrew bash completion | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment