[zsh] less dependency on oh-my-zsh
This commit is contained in:
parent
e8172c1c48
commit
1dfd7ffe9f
1 changed files with 23 additions and 13 deletions
36
zsh/zshrc
36
zsh/zshrc
|
@ -3,7 +3,6 @@
|
||||||
DOTFILES=$HOME/.dotfiles
|
DOTFILES=$HOME/.dotfiles
|
||||||
ADOTDIR=$DOTFILES/vendor/zsh-users/antigen/
|
ADOTDIR=$DOTFILES/vendor/zsh-users/antigen/
|
||||||
GREP_EXCLUDE_DIR="{.git,.sass-cache,artwork,node_modules,vendor}"
|
GREP_EXCLUDE_DIR="{.git,.sass-cache,artwork,node_modules,vendor}"
|
||||||
OS=`uname`
|
|
||||||
|
|
||||||
export CLICOLOR=1
|
export CLICOLOR=1
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
@ -12,35 +11,46 @@ export TERM="xterm-256color"
|
||||||
|
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
|
||||||
|
source $DOTFILES/zsh/`uname`.zshrc
|
||||||
source $DOTFILES/vendor/zsh-users/antigen/antigen.zsh
|
source $DOTFILES/vendor/zsh-users/antigen/antigen.zsh
|
||||||
|
|
||||||
antigen-use oh-my-zsh
|
antigen-use oh-my-zsh
|
||||||
antigen-bundle git
|
|
||||||
antigen-theme $DOTFILES/zsh joshtronic
|
antigen-theme $DOTFILES/zsh joshtronic
|
||||||
|
|
||||||
antigen-bundle zsh-users/zsh-completions
|
antigen-bundle zsh-users/zsh-completions
|
||||||
antigen-bundle zsh-users/zsh-syntax-highlighting
|
antigen-bundle zsh-users/zsh-syntax-highlighting
|
||||||
antigen-bundle zsh-users/zsh-history-substring-search
|
antigen-bundle zsh-users/zsh-history-substring-search
|
||||||
if [ $OS = 'Darwin' ]; then antigen-bundle osx; fi
|
|
||||||
|
|
||||||
antigen-apply
|
antigen-apply
|
||||||
|
|
||||||
OS_ZSHRC=$DOTFILES/zsh/$OS.zshrc
|
|
||||||
if [ -e $OS_ZSHRC ]; then source $OS_ZSHRC; fi
|
|
||||||
|
|
||||||
bindkey '^[[A' history-substring-search-up
|
bindkey '^[[A' history-substring-search-up
|
||||||
bindkey '^[[B' history-substring-search-down
|
bindkey '^[[B' history-substring-search-down
|
||||||
|
|
||||||
# Git aliases
|
# Git aliases
|
||||||
alias gmm="git merge master"
|
alias g='git'
|
||||||
alias gmv="git mv"
|
alias ga='git add'
|
||||||
alias grm="git rm"
|
alias gaa='git add -all'
|
||||||
|
alias gc='git commit -v'
|
||||||
|
alias gca='git commit -a -v'
|
||||||
|
alias gcb='git checkout -b'
|
||||||
|
alias gcm='git checkout master'
|
||||||
|
alias gco='git checkout'
|
||||||
|
alias gd='git diff'
|
||||||
|
alias gf='git fetch origin $(git_current_branch)'
|
||||||
|
alias gl='git pull origin $(git_current_branch)'
|
||||||
|
alias glg='git log'
|
||||||
|
alias gm='git merge'
|
||||||
|
alias gmm='git merge master'
|
||||||
|
alias gmv='git mv'
|
||||||
|
alias gp='git push origin $(git_current_branch)'
|
||||||
|
alias grm='git rm'
|
||||||
|
alias gst='git status'
|
||||||
|
|
||||||
# HTTPie aliases
|
# HTTPie aliases
|
||||||
alias GET="http"
|
alias GET='http'
|
||||||
alias POST="http POST"
|
alias POST='http POST'
|
||||||
alias HEAD="http HEAD"
|
alias HEAD='http HEAD'
|
||||||
alias dl="http --print=b --download"
|
alias dl='http --print=b --download'
|
||||||
|
|
||||||
# Ship
|
# Ship
|
||||||
alias ship="$DOTFILES/vendor/fetchlogic/ship/ship"
|
alias ship="$DOTFILES/vendor/fetchlogic/ship/ship"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue