aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2016-08-12 17:27:04 +0200
committerKarel Kočí <karel.koci@nic.cz>2016-08-12 17:27:04 +0200
commit0d139c4351b16da214e9efa09abe716fc164e1e2 (patch)
tree00158d8fd7bc7519ebbb644b1c8d59c907b64d1d /install
parentae4600e31f53a5775c5008b2c8633d8450be56bf (diff)
downloadmyconfigs-0d139c4351b16da214e9efa09abe716fc164e1e2.tar.gz
myconfigs-0d139c4351b16da214e9efa09abe716fc164e1e2.tar.bz2
myconfigs-0d139c4351b16da214e9efa09abe716fc164e1e2.zip
Update and simplify install script
Diffstat (limited to 'install')
-rwxr-xr-xinstall47
1 files changed, 21 insertions, 26 deletions
diff --git a/install b/install
index a504b92..06bcb5c 100755
--- a/install
+++ b/install
@@ -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