2019-02-18 12:40:41 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2019-05-15 09:55:33 +02:00
|
|
|
if hash git; then
|
|
|
|
git clone https://gitlab.com/ceda_ei/wish.git $HOME/.config/wish.git
|
|
|
|
else
|
|
|
|
curl https://gitlab.com/ceda_ei/wish/-/archive/master/wish-master.tar -o /tmp/wish.tar
|
|
|
|
mkdir $HOME/.config 2> /dev/null
|
|
|
|
cd /tmp/
|
|
|
|
tar xf wish.tar
|
|
|
|
mv wish-master/ wish/
|
|
|
|
mv wish/ $HOME/.config/
|
|
|
|
fi
|
|
|
|
|
2019-02-18 12:40:41 +01:00
|
|
|
cat >> ~/.bashrc <<EOF
|
|
|
|
|
|
|
|
# Wish
|
|
|
|
|
|
|
|
WISH_PLUGINS=(exit_code_smiley bg_jobs date path newline vcs)
|
|
|
|
WISH_THEME=plain
|
|
|
|
source ~/.config/wish/wish.sh
|
|
|
|
EOF
|