From 3ac26615e171dfdbcb6f2cf44611ddd073f66537 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 28 Jul 2020 10:23:37 +0200 Subject: [PATCH] automatically install zgen --- install.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index cd2cbc3..1b20432 100755 --- a/install.sh +++ b/install.sh @@ -1,18 +1,17 @@ #!/bin/bash # Make ZSH the default shell environment -if [ `cat /etc/passwd | grep $USER | awk -F ':' '{print $7}'` != "/bin/zsh" ]; then +if [ `cat /etc/passwd | grep $USER | awk -F ':' '{print $7}'` != "/usr/bin/zsh" ]; then echo "Changing shell to zsh" chsh -s $(which zsh) fi -# ZIM Installation -if [ ! -d "$HOME/.zim" ]; then - echo "Installing ZIM" - git clone --recursive --depth=1 https://github.com/zimfw/zimfw.git \ - ${ZDOTDIR:-${HOME}}/.zim +# zgen Installation +if [ ! -d "$HOME/.zgen" ]; then + echo "Installing zgen" + git clone --depth=1 https://github.com/tarjoilija/zgen.git "${HOME}/.zgen" else - echo "ZIM already exists." + echo "zgen already exists." fi # Powerlevel9k Theme