Created
August 30, 2019 06:46
-
-
Save waterlow/2fa565d4a2f11e8251cf9060bbcf09ee to your computer and use it in GitHub Desktop.
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
| source ~/.zplug/init.zsh | |
| # 履歴ファイルの保存先 | |
| export HISTFILE=${HOME}/.zsh_history | |
| # メモリに保存される履歴の件数 | |
| export HISTSIZE=1000 | |
| # 履歴ファイルに保存される履歴の件数 | |
| export SAVEHIST=100000 | |
| # 重複を記録しない | |
| setopt hist_ignore_dups | |
| # 開始と終了を記録 | |
| setopt EXTENDED_HISTORY | |
| PATH=/usr/bin:${PATH} | |
| PATH="$HOME/.rbenv/bin:$PATH" | |
| eval "$(rbenv init - zsh)" | |
| PATH="$HOME/.ndenv/bin:$PATH" | |
| eval "$(ndenv init - zsh)" | |
| function ssh_color() { | |
| case $1 in | |
| production* ) echo -e "\033]50;SetProfile=production\a" ;; | |
| staging* ) echo -e "\033]50;SetProfile=staging\a" ;; | |
| development* ) echo -e "\033]50;SetProfile=development\a" ;; | |
| *) echo -e "\033]50;SetProfile=Default\a" ;; | |
| esac | |
| ssh $@ | |
| echo -e "\033]50;SetProfile=Default\a" | |
| } | |
| alias ssh='ssh_color' | |
| compdef _ssh ssh_color=ssh | |
| alias b="bundle exec" | |
| alias gp='git push' | |
| alias ga='git add' | |
| alias gc='git commit -v' | |
| alias gc!='git commit -v --amend' | |
| alias gcn!='git commit -v --no-edit --amend' | |
| alias gca='git commit -v -a' | |
| alias gca!='git commit -v -a --amend' | |
| alias gcan!='git commit -v -a --no-edit --amend' | |
| alias gcans!='git commit -v -a -s --no-edit --amend' | |
| alias gcam='git commit -a -m' | |
| alias gcsm='git commit -s -m' | |
| alias gcb='git checkout -b' | |
| alias gcf='git config --list' | |
| alias gcl='git clone --recursive' | |
| alias gclean='git clean -fd' | |
| alias gpristine='git reset --hard && git clean -dfx' | |
| alias gcm='git checkout master' | |
| alias gcd='git checkout develop' | |
| alias gcmsg='git commit -m' | |
| alias gco='git checkout' | |
| alias gcount='git shortlog -sn' | |
| alias gss='git status -s' | |
| alias gcr='git push --set-upstream origin $(git_current_branch)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment