From 0a864149cad25b2ecbfbc22d944f64f125727831 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Mon, 7 Sep 2020 01:28:39 +0200 Subject: [PATCH] hopefully done for now --- install | 39 +++++++++++++++++++++------------------ zsh/rc.zsh | 3 --- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/install b/install index 9aec863..6dca597 100755 --- a/install +++ b/install @@ -1,22 +1,25 @@ #!/bin/bash -[[ $1 == "copy" ]] && echo ">>> Copying .gitconfig - Please Wait! <<<" -[[ $1 == "copy" ]] && sudo cp ${HOME}/.config/dotfiles/copy/gitconfig /etc/gitconfig -[[ $1 == "copy" ]] && echo ">>> Copying .gitignore - Please Wait! <<<" -[[ $1 == "copy" ]] && sudo cp ${HOME}/.config/dotfiles/copy/gitignore /etc/gitignore -[[ $1 == "copy" ]] && echo ">>> Copying .zshenv - Please Wait! <<<" -[[ $1 == "copy" ]] && cp ${HOME}/.config/dotfiles/copy/zshenv ${HOME}/.zshenv +[[ $1 == "copy" ]] && { + echo ">>> Copying .gitconfig - Please Wait! <<<" + sudo cp ${HOME}/.config/dotfiles/copy/gitconfig /etc/gitconfig + echo ">>> Copying .gitignore - Please Wait! <<<" + sudo cp ${HOME}/.config/dotfiles/copy/gitignore /etc/gitignore + echo ">>> Copying .zshenv - Please Wait! <<<" + cp ${HOME}/.config/dotfiles/copy/zshenv ${HOME}/.zshenv +} -[[ $1 == "clone" ]] && echo ">>> Cloning needed Repos - Please Wait! <<<" -[[ $1 == "clone" ]] && mkdir -p zsh/plugins -[[ $1 == "clone" ]] && git clone https://github.com/olets/zsh-abbr.git ~/.config/dotfiles/zsh/plugins/abbr -[[ $1 == "clone" ]] && git clone https://github.com/wookayin/fzf-fasd.git ~/.config/dotfiles/zsh/plugins/fzfasd -[[ $1 == "clone" ]] && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.config/dotfiles/zsh/plugins/syntax -[[ $1 == "clone" ]] && git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.config/dotfiles/zsh/plugins/suggestions -[[ $1 == "clone" ]] && git clone https://github.com/zsh-users/zsh-completions.git ~/.config/dotfiles/zsh/plugins/completions -[[ $1 == "clone" ]] && git clone https://github.com/urbainvaes/fzf-marks.git ~/.config/dotfiles/zsh/plugins/fzfmarks -[[ $1 == "clone" ]] && git clone https://github.com/voronkovich/gitignore.plugin.zsh.git ~/.config/dotfiles/zsh/plugins/gitignore -[[ $1 == "clone" ]] && git clone https://github.com/reegnz/jq-zsh-plugin.git ~/.config/dotfiles/zsh/plugins/jq -[[ $1 == "clone" ]] && git clone https://github.com/asdf-vm/asdf.git ~/.config/dotfiles/zsh/plugins/asdf -[[ $1 == "clone" ]] && git clone https://github.com/Aloxaf/fzf-tab.git ~/.config/dotfiles/zsh/plugins/fzftab +[[ $1 == "clone" ]] && { + echo ">>> Cloning needed Repos - Please Wait! <<<" + mkdir -p zsh/plugins + [ -d "$HOME/.config/dotfiles/zsh/plugins/fzfasd/.git" ] || git clone https://github.com/wookayin/fzf-fasd.git ~/.config/dotfiles/zsh/plugins/fzfasd + [ -d "$HOME/.config/dotfiles/zsh/plugins/syntax/.git" ] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.config/dotfiles/zsh/plugins/syntax + [ -d "$HOME/.config/dotfiles/zsh/plugins/suggestions/.git" ] || git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.config/dotfiles/zsh/plugins/suggestions + [ -d "$HOME/.config/dotfiles/zsh/plugins/completions/.git" ] || git clone https://github.com/zsh-users/zsh-completions.git ~/.config/dotfiles/zsh/plugins/completions + [ -d "$HOME/.config/dotfiles/zsh/plugins/fzfmarks/.git" ] || git clone https://github.com/urbainvaes/fzf-marks.git ~/.config/dotfiles/zsh/plugins/fzfmarks + [ -d "$HOME/.config/dotfiles/zsh/plugins/gitignore/.git" ] || git clone https://github.com/voronkovich/gitignore.plugin.zsh.git ~/.config/dotfiles/zsh/plugins/gitignore + [ -d "$HOME/.config/dotfiles/zsh/plugins/jq/.git" ] || git clone https://github.com/reegnz/jq-zsh-plugin.git ~/.config/dotfiles/zsh/plugins/jq + [ -d "$HOME/.config/dotfiles/zsh/plugins/asdf/.git" ] || git clone https://github.com/asdf-vm/asdf.git ~/.config/dotfiles/zsh/plugins/asdf + [ -d "$HOME/.config/dotfiles/zsh/plugins/fzftab/.git" ] || git clone https://github.com/Aloxaf/fzf-tab.git ~/.config/dotfiles/zsh/plugins/fzftab +} [[ $1 == "" ]] && echo ">>> Use either 'copy' to copy files or 'clone' to clone needed plugins <<<" diff --git a/zsh/rc.zsh b/zsh/rc.zsh index e9c39da..b3587ef 100644 --- a/zsh/rc.zsh +++ b/zsh/rc.zsh @@ -22,9 +22,6 @@ source $ZDOTDIR/files/lando.zsh # Plugins and Configs eval "$(fasd --init auto)" - -#source $ZDOTDIR/plugins/abbr/zsh-abbr.zsh # need to fix - source $ZDOTDIR/plugins/fzfasd/fzf-fasd.plugin.zsh export FZF_MARKS_FILE=$HOME/.config/fzfmarks source $ZDOTDIR/plugins/fzfmarks/fzf-marks.plugin.zsh