Skip to content

Instantly share code, notes, and snippets.

@GeneralD
Last active September 6, 2018 12:13
Show Gist options
  • Save GeneralD/a1550e890a4c581d233896517d90de19 to your computer and use it in GitHub Desktop.
Save GeneralD/a1550e890a4c581d233896517d90de19 to your computer and use it in GitHub Desktop.
必要なファイルのみzcompileする ref: https://qiita.com/GeneralD/items/73e31ab8cf9aa01e480f
() { # zcompile if needed
local src
for src in $@; do
([[ ! -e $src.zwc ]] || [[ $src:A -nt $src.zwc ]]) && zcompile $src
done
} ~/.zshenv ~/.zshrc ~/.zprofile ~/.zlogin ~/.zlogout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment