Skip to content

Instantly share code, notes, and snippets.

@seriwb
Last active May 11, 2017 16:50
Show Gist options
  • Save seriwb/9161786 to your computer and use it in GitHub Desktop.
Save seriwb/9161786 to your computer and use it in GitHub Desktop.
Macの.bashrc
# command aliases
alias l='ls -l'
alias ll='ls -la'
alias vim='/usr/local/bin/vim'
alias vi='vim'
#alias scalac='scalac-2.11'
#alias scala='scala-2.11'
#alias ruby='ruby2.2'
#alias php='php56'
alias gia='git add'
alias gian='git add -nA'
alias gicm='git commit -m'
alias gib='git branch'
alias gibd='git branch --merged | egrep -v "\*|develop|staging|master" | xargs git branch -d'
alias gic='git checkout'
alias gis='git status'
alias gip='git push'
alias gipu='git push -u origin'
alias gipl='git pull'
alias gsubp='git submodule foreach git pull origin master'
alias gicd='cd `git rev-parse --show-toplevel`'
alias decrypt='ansible-vault decrypt --vault-password-file ~/.vault_password'
alias encrypt='ansible-vault encrypt --vault-password-file ~/.vault_password'
mkcd() {
\mkdir $* && cd $_
}
alias mkcd="mkcd"
# color config
export CLICOLOR=1
export LSCOLORS=cxgxcxdxCxegedabagacad
cdtitle() {
\cd "$@" && echo -ne "\033]0;$(pwd | rev | awk -F \/ '{print "/"$1"/"$2}'| rev)\007"
}
alias cd="cdtitle"
# programming options
export PATH=$PATH:/usr/local/mysql/bin
#export JAVA_HOME=`/System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java_home -v "1.8"`
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
#export PATH=$JAVA_HOME/bin:$PATH:/usr/local/bin/grails-2.3.7/bin
#export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8
export PATH=$PATH:$HOME/Develop/play-activator
#export PATH=$PATH:/opt/local/lib/mysql57/bin
export ASAKUSA_HOME=/usr/local/asakusa
[[ -e ~/.phpbrew/bashrc ]] && source ~/.phpbrew/bashrc
export NVM_DIR="/Users/seri/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
#export GOPATH=/usr/local/opt/go/libexec
#export PATH=$PATH:$GOPATH/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin:/usr/local/opt/go/libexec/bin
#PATH="/Users/seri/.conscript/bin:$PATH"
export PATH=$PATH:~/.cargo/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment