From 1bded877b8585bf4a480ae57927a023bd0664180 Mon Sep 17 00:00:00 2001 From: Cyryl Plotnicki-Chudyk Date: Sun, 31 Aug 2014 08:01:19 +0200 Subject: [PATCH] extracted common part for the workstation installation script --- install_common.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ install_fedora.sh | 42 +----------------------------------------- 2 files changed, 47 insertions(+), 41 deletions(-) create mode 100755 install_common.sh diff --git a/install_common.sh b/install_common.sh new file mode 100755 index 00000000..d8d7d424 --- /dev/null +++ b/install_common.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +#zsh +sudo chsh -s `which zsh` $USER + +#submodules +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $DIR +git submodule init +git submodule update --recursive + +#rvm +curl -sSL https://get.rvm.io | bash -s stable +source $HOME/.rvm/scripts/rvm +rvm install ruby + +#symbolic links +ln -s "$DIR/.vim" ~/. +ln -s "$DIR/.vimrc" ~/. +ln -s "$DIR/.tmux.conf" ~/. +rm -f "~/.zshrc" +ln -s "$DIR/.zshrc" ~/. +ln -s "$DIR/.oh-my-zsh" ~/. +ln -s "$DIR/.Slic3r" ~/. +ln -s "$DIR/.gitconfig.linux.private" ~/.gitconfig +ln -s "$DIR/tools" ~/ + +#install fonts +mkdir ~/.fonts +cp -rv "$DIR/fonts" ~/.fonts +fc-cache + + +#set solarized scheme +$DIR/gnome-terminal-colors-solarized/install.sh + +#setting colors to solarized should result in the default proile with the following id set +#TODO: choose the profile dynamically +dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/font "'Inconsolata for Powerline Medium 18'" +dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/login-shell true +dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/audible-bell false +dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/use-system-font false + +echo +echo "now go ahead and restart Gnome session" + diff --git a/install_fedora.sh b/install_fedora.sh index 353526ce..82f78cbf 100755 --- a/install_fedora.sh +++ b/install_fedora.sh @@ -22,46 +22,6 @@ sudo make install sudo pip-python3 install retext -#zsh -sudo chsh -s `which zsh` $USER - -#submodules DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd $DIR -git submodule init -git submodule update --recursive - -#rvm -curl -sSL https://get.rvm.io | bash -s stable -rvm install ruby - -#symbolic links -ln -s "$DIR/.vim" ~/. -ln -s "$DIR/.vimrc" ~/. -ln -s "$DIR/.tmux.conf" ~/. -rm -f "$DIR/.zshrc" -ln -s "$DIR/.zshrc" ~/. -ln -s "$DIR/.oh-my-zsh" ~/. -ln -s "$DIR/.Slic3r" ~/. -ln -s "$DIR/.gitconfig.linux.private" ~/.gitconfig -ln -s "$DIR/tools" ~/ - -#install fonts -mkdir ~/.fonts -cp -rv "$DIR/fonts" ~/.fonts -fc-cache - - -#set solarized scheme -$DIR/gnome-terminal-colors-solarized/install.sh - -#setting colors to solarized should result in the default proile with the following id set -#TODO: choose the profile dynamically -dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/font "'Inconsolata for Powerline Medium 18'" -dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/login-shell true -dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/audible-bell false -dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/use-system-font false - -echo -echo "now go ahead and restart Gnome session" +$DIR/install_common.sh