]> arthur.barton.de Git - ax-zsh.git/commitdiff
Introduce $AXZSH/custom_plugins directory
authorAlexander Barton <alex@barton.de>
Sat, 12 Sep 2015 18:42:11 +0000 (20:42 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 12 Sep 2015 18:42:11 +0000 (20:42 +0200)
You can use this directory to store custom/local plugins.

.gitignore
README.md
bin/axzshctl
install.sh

index 4653c6d2c3de7b72c8cb34d11d7f5e9d4861cb60..0e54b5134dde8339c8751ad36310b347918d9706 100644 (file)
@@ -1 +1,2 @@
 active_plugins/
+custom_plugins/
index d15f077566979f3c97d5a56c50bda9a7f1c91957..9f992eb5f2bfe38c621fabda609af6f85b4b0ee2 100644 (file)
--- 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.
 
index 4af22b41223b01ac32bf9867de0ac6333a00791a..82fb065bd858e69fa01fae5b9709aa30de870270 100755 (executable)
@@ -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"
index fc97abd1868c44c37939b5a13eaf49a697280aef..923ab8694213eedcbf80878e0c1c09cb6edfcb57 100755 (executable)
@@ -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