From 0b639036322a99b71125d012d43b06aa3c7575f7 Mon Sep 17 00:00:00 2001 From: Fabian Ising Date: Fri, 18 Nov 2016 16:04:50 +0100 Subject: [PATCH] Add arch setup first version --- clone_and_link.sh | 7 +++++++ general_setup.sh | 12 ++++++++++++ link_config.sh | 11 +++++++++++ setup_arch.sh | 15 +++++++++++++++ 4 files changed, 45 insertions(+) create mode 100755 general_setup.sh create mode 100755 link_config.sh create mode 100755 setup_arch.sh diff --git a/clone_and_link.sh b/clone_and_link.sh index d39b99a..076b08d 100755 --- a/clone_and_link.sh +++ b/clone_and_link.sh @@ -8,3 +8,10 @@ git submodule update --init --recursive +ln -s $PWD/vim ~/.vim +ln -s ~/.vim/.vimrc ~/.vimrc +ln -s $PWD/zsh ~/.zsh +ln -s ~/.zsh/.zshrc ~/.zshrc +ln -s $PWD/tmux ~/.tmux +ln -s ~/.tmux/.tmux.conf ~/.tmux.conf + diff --git a/general_setup.sh b/general_setup.sh new file mode 100755 index 0000000..f41a631 --- /dev/null +++ b/general_setup.sh @@ -0,0 +1,12 @@ +#! /bin/sh +# +# general_setup.sh +# Copyright (C) 2016 fabian +# +# Distributed under terms of the MIT license. +# + +zsh +chsh -s /usr/bin/zsh +tmux +echo ":PluginInstall" | vim diff --git a/link_config.sh b/link_config.sh new file mode 100755 index 0000000..83d8e2a --- /dev/null +++ b/link_config.sh @@ -0,0 +1,11 @@ +#! /bin/sh +# +# link_config.sh +# Copyright (C) 2016 fabian +# +# Distributed under terms of the MIT license. +# + +for filename in .config/*; do + ln -s $PWD/$filename ~/$filename +done diff --git a/setup_arch.sh b/setup_arch.sh new file mode 100755 index 0000000..2a6e620 --- /dev/null +++ b/setup_arch.sh @@ -0,0 +1,15 @@ +#! /bin/sh +# +# clone_and_link.sh +# Copyright (C) 2016 fabian +# +# Distributed under terms of the MIT license. +# + +sudo pacman -Sy archlinux-keyring --noconfirm +sudo pacman -Syu --noconfirm +sudo pacman -Sy base-devel xorg xorg-xinit gnome gnome-extra gvim zsh tmux openssh termite powerline powerline-fonts --noconfirm +./clone_and_link.sh +cp zsh/.powerline_config_arch.example zsh/.powerline_config +cp vim/.vimrc_config_powerline_arch.example vim/.vimrc_config_powerline +chsh -s /usr/bin/zsh