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:
parent
704171d271
commit
bb8ce756d3
@ -32,7 +32,9 @@ alias ae='vi $yadr/zsh/aliases.zsh' #alias edit
|
||||
alias ar='source $yadr/zsh/aliases.zsh' #alias reload
|
||||
|
||||
# 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
|
||||
alias ve='vi ~/.vimrc'
|
||||
@ -84,10 +86,11 @@ alias gplr='git pull --rebase'
|
||||
alias gps='git push'
|
||||
alias gpsh='git push'
|
||||
alias gnb='git nb' # new branch aka checkout -b
|
||||
alias grs='git reset'
|
||||
alias grs='git reset'
|
||||
alias grsh='git reset --hard'
|
||||
alias gcln='git clean'
|
||||
alias gclndf='git clean -df'
|
||||
alias gclndfx='git clean -dfx'
|
||||
alias gsm='git submodule'
|
||||
alias gsmi='git submodule init'
|
||||
alias gsmu='git submodule update'
|
||||
|
@ -1 +1,3 @@
|
||||
source ~/.secrets
|
||||
if [ -e ~/.secrets ]; then
|
||||
source ~/.secrets
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user