Integrate ZSH to user flavour

This commit is contained in:
maride 2017-09-03 01:45:48 +02:00
parent c52b6171ea
commit f7980310dc
2 changed files with 9 additions and 8 deletions

View File

@ -24,5 +24,14 @@ else
fi
fi
echo -n " Set up zsh with ohmyzsh for $name? (Y/n) "
read answer
if [ "$answer" == "y" ] || [ "$answer" == "Y" ]; then
pacstrap /mnt zsh
pacman -Sy --noconfirm git
git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git /mnt/home/$name/
wget https://git.darknebu.la/maride/config/raw/master/zshrc -O /mnt/home/$name/.zshrc
fi
amf_return=0
fi

View File

@ -1,8 +0,0 @@
#!/bin/bash
echo "~> Installing zsh with ohmyz.sh mod"
pacstrap /mnt zsh
pacman -S --noconfirm git
git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git /mnt/home/*/
wget https://git.darknebu.la/maride/config/raw/master/zshrc -O /mnt/home/*/.zshrc