From 9be241829fba9e3abb0a75749230667982fb6bee Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Fri, 4 Sep 2020 18:56:57 +0200 Subject: [PATCH] updated stuff --- .gitignore | 1 + install | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 7cd2cf6..789a38a 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ zsh/local +zsh/plugins diff --git a/install b/install index 0fff686..4eb38bd 100755 --- a/install +++ b/install @@ -1,9 +1,16 @@ #!/bin/bash -echo ">>> Copying Gitconfig - Please Wait! <<<" -sudo cp ${HOME}/.config/dotfiles/copy/gitconfig /etc/gitconfig +[[ $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 -echo ">>> Copying Gitignore - Please Wait! <<<" -sudo cp ${HOME}/.config/dotfiles/copy/gitignore /etc/gitignore +[[ $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 zsh/plugins/abbr +[[ $1 == "clone" ]] && git clone https://github.com/marlonrichert/zsh-autocomplete.git zsh/plugins/autocomplete +[[ $1 == "clone" ]] && git clone https://github.com/larkery/zsh-histdb.git zsh/plugins/histdb +[[ $1 == "clone" ]] && git clone https://github.com/m42e/zsh-histdb-fzf.git zsh/plugins/histdb-fzf -echo ">>> Copying ZSH Environment File - Please Wait! <<<" -cp ${HOME}/.config/dotfiles/copy/zshenv ${HOME}/.zshenv +[[ $1 == "" ]] && echo ">>> Use either 'copy' to copy files or 'clone' to clone needed plugins <<<"