diff options
author | Karel Kočí <karel.koci@nic.cz> | 2016-08-12 17:27:04 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2016-08-12 17:27:04 +0200 |
commit | 0d139c4351b16da214e9efa09abe716fc164e1e2 (patch) | |
tree | 00158d8fd7bc7519ebbb644b1c8d59c907b64d1d | |
parent | ae4600e31f53a5775c5008b2c8633d8450be56bf (diff) | |
download | myconfigs-0d139c4351b16da214e9efa09abe716fc164e1e2.tar.gz myconfigs-0d139c4351b16da214e9efa09abe716fc164e1e2.tar.bz2 myconfigs-0d139c4351b16da214e9efa09abe716fc164e1e2.zip |
Update and simplify install script
-rwxr-xr-x | install | 47 |
1 files changed, 21 insertions, 26 deletions
@@ -1,11 +1,7 @@ #!/bin/bash -WDIR=`pwd` cd `dirname $0` -IUSER=`whoami` -WHOME=`cd ~ && pwd` - function inst { SOURCE=$1 OUTPUT=$2 @@ -15,54 +11,53 @@ function inst { read -p "Install Bashrc? (Y/n) " if [[ $REPLY =~ ^[Yy]?$ ]]; then - inst bashrc $WHOME/.bashrc + inst bashrc ~/.bashrc fi -# This doesn't work. sudo can't be called on function -#read -p "Install Bashrc to root? (Y/n) " -#if [[ $REPLY =~ ^[Yy]?$ ]]; then - #sudo inst bashrc /root/.bashrc -#fi - read -p "Install GIT configuration? (Y/n) " if [[ $REPLY =~ ^[Yy]?$ ]]; then - inst gitconfig $WHOME/.gitconfig + inst gitconfig ~/.gitconfig fi read -p "Install VIM scripts? (Y/n) " if [[ $REPLY =~ ^[Yy]?$ ]]; then - inst vimrc $WHOME/.vimrc - inst vim $WHOME/.vim + inst vimrc ~/.vimrc + inst vim ~/.vim echo "Please don't forget to setup YouCompleteMe" fi -read -p "Install i3 configuration? (Y/n) " +read -p "Install i3 configuration and related tools? (Y/n) " if [[ $REPLY =~ ^[Yy]?$ ]]; then - inst xinitrc $WHOME/.xinitrc - inst Xresources $WHOME/.Xresources - inst config/i3 $WHOME/.config/i3 - inst config/i3blocks $WHOME/.config/i3blocks - inst config/i3status $WHOME/.config/i3status - inst local/bin/mxrandr $WHOME/.local/bin/mxrandr + inst xinitrc ~/.xinitrc + inst Xresources ~/.Xresources + inst config/i3/ ~/.config/i3 + inst config/i3blocks/ ~/.config/i3blocks + inst config/i3status/ ~/.config/i3status + inst local/bin/mxrandr ~/.local/bin/mxrandr fi read -p "Install Conkeror configuration? (Y/n) " if [[ $REPLY =~ ^[Yy]?$ ]]; then - inst conkerorrc $WHOME/.conkerorrc - inst conkeror $WHOME/.conkeror + inst conkerorrc ~/.conkerorrc + inst conkeror/ ~/.conkeror fi read -p "Install MPD configuration? (Y/n) " if [[ $REPLY =~ ^[Yy]?$ ]]; then - inst config/mpd $WHOME/.config/mpd + inst config/mpd/ ~/.config/mpd +fi + +read -p "Install Mopidy configuration? (Y/n) " +if [[ $REPLY =~ ^[Yy]?$ ]]; then + inst config/mopidy/ ~/.config/mopidy fi read -p "Install backup script? (Y/n) " if [[ $REPLY =~ ^[Yy]?$ ]]; then - inst local/bin/system-backup $WHOME/.local/bin/system-backup + inst local/bin/system-backup ~/.local/bin/system-backup fi read -p "Install Eagle CAD configuration? (Y/n) " if [[ $REPLY =~ ^[Yy]?$ ]]; then - inst eaglerc $WHOME/.eaglerc + inst eaglerc ~/.eaglerc fi |