From ab4280c3ec2f2e99c01bc52775a9a3135bca8ee1 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 12 Sep 2015 20:42:11 +0200 Subject: [PATCH] Introduce $AXZSH/custom_plugins directory You can use this directory to store custom/local plugins. --- .gitignore | 1 + README.md | 5 +++++ bin/axzshctl | 1 + install.sh | 2 ++ 4 files changed, 9 insertions(+) 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 -- 2.39.2