From: Alexander Barton Date: Wed, 11 May 2016 08:18:09 +0000 (+0200) Subject: Add "zsh-navigation-tools" plugin X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=9f3eafbd7a31558662c8fee8867c63ff3d2462e4 Add "zsh-navigation-tools" plugin --- 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