diff options
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc index c86c535..1de48ad 100644 --- a/.zshrc +++ b/.zshrc @@ -4,6 +4,7 @@ # per-device configuration (pre) <dev-pre> # zsh configuration <zsh-conf> # third party configuration <3rd-conf> +# aliases & non-script functions <alias-fns> # per-device configuration (post) <dev-post> @@ -106,6 +107,17 @@ fi export PATH +# //// aliases & non-script functions //////////////////////// <alias-fns> // # + +# -- hooks into third-party stuff -- + +if [[ -v DEVICE_HAS_VIM ]]; then + vimhelp() { + vim -c ":h $1 | only" + } +fi + + # //// per-device configuration /////////////////////////////// <dev-post> // # device_postconfig |