From: Alexander Barton Date: Sat, 12 Sep 2015 18:42:11 +0000 (+0200) Subject: Introduce $AXZSH/custom_plugins directory X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=ab4280c3ec2f2e99c01bc52775a9a3135bca8ee1 Introduce $AXZSH/custom_plugins directory You can use this directory to store custom/local plugins. --- diff --git a/.gitignore b/.gitignore index 4653c6d..0e54b51 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ active_plugins/ +custom_plugins/ diff --git a/README.md b/README.md index d15f077..9f992eb 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,11 @@ initializes an alias which points to the actual location in `~/.axzsh/bin/`. See `axzshctl --help` for details. +You can link custom plugins stored in arbitrary directories using `axzshctl` +by specifying the complete path name. Or you can place additional plugins into +the `~/.axzsh/custom_plugins` folder which is searched by the `axzshctl` tool +by default. + In addition you can set the `AXZSH_PLUGIN_D` variable (and `ZSH_CUSTOM` like "OhMyZsh") to specify additional plugin search directories. diff --git a/bin/axzshctl b/bin/axzshctl index 4af22b4..82fb065 100755 --- a/bin/axzshctl +++ b/bin/axzshctl @@ -52,6 +52,7 @@ function EnablePlugin { "$plugin:A" "$AXZSH_PLUGIN_D/$plugin" "$ZSH_CUSTOM/$plugin" + "$AXZSH/custom_plugins/$plugin" "$AXZSH/plugins/$plugin" "$AXZSH/default_plugins/$plugin" "$AXZSH/core/$plugin" diff --git a/install.sh b/install.sh index fc97abd..923ab86 100755 --- a/install.sh +++ b/install.sh @@ -66,6 +66,8 @@ else done fi +mkdir -p "$AXZSH/custom_plugins" || abort + ax_msg - "Linking ZSH startup files ..." for f in ~/.zlogin ~/.zlogout ~/.zprofile ~/.zshrc; do