X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fzsh-navigation-tools%2Fdoc%2Finstall.sh;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Fzsh-navigation-tools%2Fdoc%2Finstall.sh;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=2b71aa3b411a515cdad4be3666611fb1538d5e57;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/zsh-navigation-tools/doc/install.sh b/stow/oh-my-zsh/.oh-my-zsh/plugins/zsh-navigation-tools/doc/install.sh deleted file mode 100755 index 2b71aa3..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/zsh-navigation-tools/doc/install.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/bin/sh - -if ! type git 2>/dev/null 1>&2; then - echo "Please install GIT first" - echo "Exiting" - exit 1 -fi - -# -# Clone or pull -# - -if ! test -d "$HOME/.config"; then - mkdir "$HOME/.config" -fi - -if ! test -d "$HOME/.config/znt"; then - mkdir "$HOME/.config/znt" -fi - -echo ">>> Downloading zsh-navigation-tools to ~/.config/znt" -if test -d ~/.config/znt/zsh-navigation-tools; then - cd ~/.config/znt/zsh-navigation-tools - git pull origin master -else - cd ~/.config/znt - git clone https://github.com/psprint/zsh-navigation-tools.git zsh-navigation-tools -fi -echo ">>> Done" - -# -# Copy configs -# - -echo ">>> Copying config files" - -cd ~/.config/znt - -set n-aliases.conf n-env.conf n-history.conf n-list.conf n-panelize.conf n-cd.conf n-functions.conf n-kill.conf n-options.conf - -for i; do - if ! test -f "$i"; then - cp -v zsh-navigation-tools/.config/znt/$i . - fi -done - -echo ">>> Done" - -# -# Modify .zshrc -# - -echo ">>> Updating .zshrc" -if ! grep zsh-navigation-tools ~/.zshrc >/dev/null 2>&1; then - echo >> ~/.zshrc - echo "### ZNT's installer added snippet ###" >> ~/.zshrc - echo "fpath=( \"\$fpath[@]\" \"\$HOME/.config/znt/zsh-navigation-tools\" )" >> ~/.zshrc - echo "autoload n-aliases n-cd n-env n-functions n-history n-kill n-list n-list-draw n-list-input n-options n-panelize n-help" >> ~/.zshrc - echo "autoload znt-usetty-wrapper znt-history-widget znt-cd-widget znt-kill-widget" >> ~/.zshrc - echo "alias naliases=n-aliases ncd=n-cd nenv=n-env nfunctions=n-functions nhistory=n-history" >> ~/.zshrc - echo "alias nkill=n-kill noptions=n-options npanelize=n-panelize nhelp=n-help" >> ~/.zshrc - echo "zle -N znt-history-widget" >> ~/.zshrc - echo "bindkey '^R' znt-history-widget" >> ~/.zshrc - echo "setopt AUTO_PUSHD HIST_IGNORE_DUPS PUSHD_IGNORE_DUPS" >> ~/.zshrc - echo "zstyle ':completion::complete:n-kill::bits' matcher 'r:|=** l:|=*'" >> ~/.zshrc - echo "### END ###" >> ~/.zshrc - echo ">>> Done" -else - echo ">>> .zshrc already updated, not making changes" -fi