From 01cc1fd9f8d3484451fb33dc06d3eb76622dd7e0 Mon Sep 17 00:00:00 2001 From: katherine Date: Sun, 19 Feb 2017 00:05:04 -0700 Subject: rearrange .zshrc modularity and switch to nvim --- .zshrc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index e538f5c..8426fab 100644 --- a/.zshrc +++ b/.zshrc @@ -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 -- cgit v1.2.3