From 9f3eafbd7a31558662c8fee8867c63ff3d2462e4 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 11 May 2016 10:18:09 +0200 Subject: [PATCH] Add "zsh-navigation-tools" plugin --- plugins/zsh-navigation-tools/README.md | 4 ++++ .../zsh-navigation-tools.zprofile | 14 ++++++++++++++ .../zsh-navigation-tools.zshrc | 14 ++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 plugins/zsh-navigation-tools/README.md create mode 100644 plugins/zsh-navigation-tools/zsh-navigation-tools.zprofile create mode 100644 plugins/zsh-navigation-tools/zsh-navigation-tools.zshrc diff --git a/plugins/zsh-navigation-tools/README.md b/plugins/zsh-navigation-tools/README.md new file mode 100644 index 0000000..de754a5 --- /dev/null +++ b/plugins/zsh-navigation-tools/README.md @@ -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 index 0000000..144ecf8 --- /dev/null +++ b/plugins/zsh-navigation-tools/zsh-navigation-tools.zprofile @@ -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 index 0000000..b481ec4 --- /dev/null +++ b/plugins/zsh-navigation-tools/zsh-navigation-tools.zshrc @@ -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 -- 2.39.2