Update install.sh

This commit is contained in:
Ceda EI 2019-12-31 12:43:33 +05:30
parent 186675ae4e
commit e01b29d4a0
1 changed files with 4 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if hash git; then if hash git; then
git clone https://gitlab.com/ceda_ei/wish.git $HOME/.config/wish.git git clone https://gitlab.com/ceda_ei/Wish.git $HOME/.config/wish
else else
curl https://gitlab.com/ceda_ei/wish/-/archive/master/wish-master.tar -o /tmp/wish.tar curl https://gitlab.com/ceda_ei/wish/-/archive/master/wish-master.tar -o /tmp/wish.tar
mkdir $HOME/.config 2> /dev/null mkdir $HOME/.config 2> /dev/null
@ -10,12 +10,11 @@ else
mv wish-master/ wish/ mv wish-master/ wish/
mv wish/ $HOME/.config/ mv wish/ $HOME/.config/
fi fi
cp $HOME/.config/wish/config.default.gie $HOME/.config/wish/config.gie
cat >> ~/.bashrc <<EOF cat >> ~/.bashrc <<EOF
# Wish # Wish
WISH_CONFIG_FILE="$HOME/.config/wish/config.gie"
WISH_PLUGINS=(exit_code_smiley bg_jobs date path newline vcs) source $HOME/.config/wish/wish.sh
WISH_THEME=plain
source ~/.config/wish/wish.sh
EOF EOF