A little cleaner under linux

I'm not explicitly supporting linux, but a few minor changes
make YADR useable for server administration.
This commit is contained in:
Yan Pritzker 2012-10-12 00:14:33 -07:00
parent 704171d271
commit bb8ce756d3
2 changed files with 8 additions and 3 deletions

View File

@ -32,7 +32,9 @@ alias ae='vi $yadr/zsh/aliases.zsh' #alias edit
alias ar='source $yadr/zsh/aliases.zsh' #alias reload alias ar='source $yadr/zsh/aliases.zsh' #alias reload
# vim using # vim using
alias vim=$(brew ls macvim | grep Contents/MacOS/Vim) if [ "$(command -v brew)" ]; then
alias vim=$(brew ls macvim | grep Contents/MacOS/Vim)
fi
# vimrc editing # vimrc editing
alias ve='vi ~/.vimrc' alias ve='vi ~/.vimrc'
@ -84,10 +86,11 @@ alias gplr='git pull --rebase'
alias gps='git push' alias gps='git push'
alias gpsh='git push' alias gpsh='git push'
alias gnb='git nb' # new branch aka checkout -b alias gnb='git nb' # new branch aka checkout -b
alias grs='git reset' alias grs='git reset'
alias grsh='git reset --hard' alias grsh='git reset --hard'
alias gcln='git clean' alias gcln='git clean'
alias gclndf='git clean -df' alias gclndf='git clean -df'
alias gclndfx='git clean -dfx'
alias gsm='git submodule' alias gsm='git submodule'
alias gsmi='git submodule init' alias gsmi='git submodule init'
alias gsmu='git submodule update' alias gsmu='git submodule update'

View File

@ -1 +1,3 @@
source ~/.secrets if [ -e ~/.secrets ]; then
source ~/.secrets
fi