diff options
author | katherine <shmibs@shmibbles.me> | 2017-02-19 00:05:04 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2017-02-19 00:05:04 -0700 |
commit | 01cc1fd9f8d3484451fb33dc06d3eb76622dd7e0 (patch) | |
tree | 4c66447468cfd39bfeafdcb98b93c54de131f73f /.zshrc | |
parent | d308281c01c9fc1ab4276dbccf6c411640379c49 (diff) | |
download | dotfiles-01cc1fd9f8d3484451fb33dc06d3eb76622dd7e0.tar.gz |
rearrange .zshrc modularity and switch to nvim
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -111,7 +111,37 @@ bindkey '^U' backward-kill-line bindkey '^P' up-history bindkey '^N' down-history +################### ALIASES ################## + +alias :q='exit' + +if [[ "$(whence vim)" != "" ]] then + export EDITOR='vim' + alias svim='sudo -E vim' + alias svimdiff='sudo -E vim -d' +fi + +if [[ "$(whence nvim)" != "" ]] then + alias svim='sudo -E nvim' + alias svimdiff='sudo -E nvim -d' + alias vim='nvim' + export EDITOR='nvim' +fi + +[[ "$(whence sdcv)" != "" ]] && alias def='sdcv' +[[ "$(whence mpv)" != "" ]] && alias dvd='mpv --deinterlace=yes dvd://' +[[ "$(whence herbstclient)" != "" ]] && alias hc='herbstclient' +[[ "$(whence aiksaurus)" != "" ]] && alias thesaurus='aiksaurus' +[[ "$(whence ag)" != "" ]] && alias ag='ag --color-match "1;34"' +[[ "$(whence latex)" != "" ]] && alias latex='latex -output-format=pdf' + +if [[ "$(whence udevil)" != "" ]] then + alias vmount='udevil mount' + alias vumount='udevil umount' +fi + ################# OS SPECIFIC ################# + case $(uname) in FreeBSD) source ~/.zshrc-freebsd |