aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-05-07 11:52:03 +0200
committerKarel Kočí <cynerd@email.cz>2017-05-07 11:52:03 +0200
commitb1258d579cb9656b851840dd466150357a2ea265 (patch)
tree86f5fe3b306430810b5175c6bd493281e2c9c3ad
parent36e9201b0fd130f3aaf924b06bf29c0e46c88743 (diff)
downloadmyconfigs-b1258d579cb9656b851840dd466150357a2ea265.tar.gz
myconfigs-b1258d579cb9656b851840dd466150357a2ea265.tar.bz2
myconfigs-b1258d579cb9656b851840dd466150357a2ea265.zip
Simplify install script
On server I always want same environment so no asking.
-rwxr-xr-xinstall48
1 files changed, 21 insertions, 27 deletions
diff --git a/install b/install
index 974a305..efa209a 100755
--- a/install
+++ b/install
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
cd `dirname $0`
@@ -10,29 +10,23 @@ git submodule update --init || (echo "Submodule update failed!"; exit 5)
#################################################################################
source private/install # private files, sorry but some privacy is required.
-if ask "Install Bashrc?"; then
- inst bashrc ~/.bashrc
- inst shellrc ~/.shellrc
- inst profile ~/.profile
-fi
-
-if ask "Install zshrc?"; then
- inst zshrc ~/.zshrc
- inst shellrc ~/.shellrc
- inst zprofile ~/.zprofile
-fi
-
-if ask "Install GIT configuration?"; then
- inst gitconfig ~/.gitconfig
- inst local/git-prompt.sh ~/.local/
-fi
-
-if ask "Install configurations for various utility tools?"; then
- inst screenrc ~/.screenrc
-fi
-
-if ask "Install VIM scripts?"; then
- inst vimrc ~/.vimrc
- mkdir -p ~/.cache/vim # directory for *.swp files
- mkdir -p ~/.cache/vim-undo # directory for undo files
-fi
+echo -ne "\e[1;34mInstall Bashrc\e[0m"
+inst bashrc ~/.bashrc
+inst shellrc ~/.shellrc
+inst profile ~/.profile
+
+echo -ne "\e[1;34mInstall zshrc\e[0m"
+inst zshrc ~/.zshrc
+inst zprofile ~/.zprofile
+
+echo -ne "\e[1;34mInstall GIT configuration\e[0m"
+inst gitconfig ~/.gitconfig
+inst local/git-prompt.sh ~/.local/
+
+echo -ne "\e[1;34mInstall configurations for various utility tools\e[0m"
+inst screenrc ~/.screenrc
+
+echo -ne "\e[1;34mInstall vim scripts\e[0m"
+inst vimrc ~/.vimrc
+mkdir -p ~/.cache/vim # directory for *.swp files
+mkdir -p ~/.cache/vim-undo # directory for undo files