diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2019-10-09 17:07:39 +0200 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2019-10-09 17:07:39 +0200 |
commit | 2b98d4a30d401403934a550c0e753942aa0faece (patch) | |
tree | fc61013f8ffad9810d6ddf72b6f7ffb2132fef26 /install | |
parent | f96d7947a488fd76e53b87e6a4d70eab903d9c4a (diff) | |
download | dotfiles-2b98d4a30d401403934a550c0e753942aa0faece.tar.gz dotfiles-2b98d4a30d401403934a550c0e753942aa0faece.zip |
:truck: Add install-scripts, reorganize
Diffstat (limited to 'install')
-rw-r--r-- | install/install_arch.sh | 15 | ||||
-rwxr-xr-x | install/install_mac.sh | 82 | ||||
-rw-r--r-- | install/install_win.bat | 10 |
3 files changed, 107 insertions, 0 deletions
diff --git a/install/install_arch.sh b/install/install_arch.sh new file mode 100644 index 0000000..5306ba2 --- /dev/null +++ b/install/install_arch.sh @@ -0,0 +1,15 @@ +echo "Install Oh-My-Zsh"
+sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
+
+echo "Install zsh-autosuggestions"
+git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
+
+echo "Install powerlevel9k"
+sudo pacman -S zsh-theme-powerlevel9k
+
+sudo pacman -S highlight atool w3m mediainfo
+
+ln -i zshrc ~/.zshrc
+
+
+echo "Please install the font Roboto mono nerd, and enable it in your terminal."
diff --git a/install/install_mac.sh b/install/install_mac.sh new file mode 100755 index 0000000..04666cc --- /dev/null +++ b/install/install_mac.sh @@ -0,0 +1,82 @@ +#!/bin/sh + +function dlgYN() { + tput sc + tput setaf 4 + printf "$1 (y/n)? " + while : + do + read -n 1 -p "" YNQuestionAnswer + if [[ $YNQuestionAnswer == "y" ]]; then + tput rc; tput el + printf "$1?: \e[0;32mYes\e[0m\n" + tput sc + eval $2=1 # Set parameter 2 of input to the return value + break + elif [[ $YNQuestionAnswer == "n" ]]; then + tput rc; tput el + printf "$1?: \e[0;31mNo\e[0m\n" + eval $2=0 # Set parameter 2 of input to the return value + break + fi + done +} + +dlgYN "> Install Homebrew" res +if [ $res -eq 1 ]; then + tput sc + /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + tput rc; tput ed +fi + +dlgYN "> Install \"Highlight, atool, w3m, mediainfo\"" res +if [ $res -eq 1 ]; then + tput sc + bew install highlight atool w3m mediainfo + tput rc; tput ed +fi + +dlgYN "> Install Oh-My-Zsh" res +if [ $res -eq 1 ]; then + tput sc + sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" + tput rc; tput ed +fi + +dlgYN "> Install zsh-autosuggestions" res +if [ $res -eq 1 ]; then + tput sc + git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions + tput rc; tput ed +fi + +dlgYN "> Install Powerline" res +if [ $res -eq 1 ]; then + tput sc + pip3 install powerline-status + tput rc; tput ed +fi + +dlgYN "> Install powerlevel9k" res +if [ $res -eq 1 ]; then + tput sc + brew tap sambadevi/powerlevel9k + brew install powerlevel9k + tput rc; tput ed +fi + +dlgYN "> Create symlinks" res +if [ $res -eq 1 ]; then + CWD=$(PWD) + tput sc + ln -isf "$CWD/mac/zshrc" ~/.zshrc + ln -isf "$CWD/mac/tmux.conf" ~/.tmux.conf + ln -isf "$CWD/mac/Hyperterm/hyper.js" ~/.hyper.js + ln -isf "$CWD/mac/Hyperterm/local" ~/.hyper_plugins/local + ln -isf "$CWD/Common/vim/vimrc" ~/.vimrc + tput rc; tput ed +fi + +tput setaf 3 +echo "\nPlease install the font Roboto mono nerd, and enable it in your terminal." +tput sgr0 diff --git a/install/install_win.bat b/install/install_win.bat new file mode 100644 index 0000000..44b529b --- /dev/null +++ b/install/install_win.bat @@ -0,0 +1,10 @@ +@echo off + +echo This installer will setup you system with jakobs1n's dotfiles. +echo It will not care about your current setup, and will assume that you have a "stock" setup, or are trying a new version of jakobs1n's config. +echo +echo Are you an administrator on your system? (Y/n) +echo I don't care... +echo +echo this key should point to your env.cmd +echo REG Add "HKCU\SOFTWARE\Microsoft\Command Processor" /v AutoRun /t REG_SZ /d <pathToFile> |