]> arthur.barton.de Git - ax-zsh.git/commitdiff
Add "zsh-navigation-tools" plugin
authorAlexander Barton <alex@barton.de>
Wed, 11 May 2016 08:18:09 +0000 (10:18 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 11 May 2016 08:18:58 +0000 (10:18 +0200)
plugins/zsh-navigation-tools/README.md [new file with mode: 0644]
plugins/zsh-navigation-tools/zsh-navigation-tools.zprofile [new file with mode: 0644]
plugins/zsh-navigation-tools/zsh-navigation-tools.zshrc [new file with mode: 0644]

diff --git a/plugins/zsh-navigation-tools/README.md b/plugins/zsh-navigation-tools/README.md
new file mode 100644 (file)
index 0000000..de754a5
--- /dev/null
@@ -0,0 +1,4 @@
+## zsh-navigation-tools
+
+Initialize "Curses-based tools for ZSH", see
+https://github.com/psprint/zsh-navigation-tools.
diff --git a/plugins/zsh-navigation-tools/zsh-navigation-tools.zprofile b/plugins/zsh-navigation-tools/zsh-navigation-tools.zprofile
new file mode 100644 (file)
index 0000000..144ecf8
--- /dev/null
@@ -0,0 +1,14 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# zsh-navigation-tools.zprofile: Initialize "ZSH Navigation Tools"
+
+for dir (
+       "/usr/share/zsh-navigation-tools"
+       "/usr/local/share/zsh-navigation-tools"
+); do
+       if [[ -d "$dir" ]]; then
+               fpath+=($dir)
+               unset dir
+               return
+       fi
+done
+unset dir
diff --git a/plugins/zsh-navigation-tools/zsh-navigation-tools.zshrc b/plugins/zsh-navigation-tools/zsh-navigation-tools.zshrc
new file mode 100644 (file)
index 0000000..b481ec4
--- /dev/null
@@ -0,0 +1,14 @@
+# AX-ZSH: Alex' Modular ZSH Configuration
+# zsh-navigation-tools.zshrc: Initialize "ZSH Navigation Tools"
+
+for script (
+       "/usr/share/zsh-navigation-tools/zsh-navigation-tools.plugin.zsh"
+       "/usr/local/share/zsh-navigation-tools/zsh-navigation-tools.plugin.zsh"
+); do
+       if [[ -r "$script" ]]; then
+               source "$script"
+               unset script
+               return
+       fi
+done
+unset script