From a5ee4f8ae4a0a7dcf958e2cb71f8862644839a86 Mon Sep 17 00:00:00 2001 From: id101010 Date: Sat, 15 Oct 2016 17:28:51 +0200 Subject: [PATCH] Added setup script --- setup.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 setup.sh diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..ff54286 --- /dev/null +++ b/setup.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +DOTFILES="/home/$USER/.dotfiles" + +# Clone the repository and setup powerline fonts +git clone https://github.com/id101010/LinuxDotFiles.git $DOTFILES + +# Uncomment to install powerlinefonts from the arch linux user repository +#yaourt -S powerline-fonts-git + +# setup i3 +if [ ! -e "$HOME/.i3" ]; then + ln -s $DOTFILES/i3wm/ $HOME/.i3 +fi + +# setup tmux +if [ ! -e "$HOME/.tmux.conf" ]; then + ln -s $DOTFILES/tmux/tmux.conf $HOME/.tmux.conf +fi + +# setup vim +if [ ! -e "$HOME/.vimrc" ]; then + ln -s $DOTFILES/vim/vimrc $HOME/.vimrc +fi + +# setup zsh +if [ ! -e "$HOME/.zshrc" ]; then + ln -s $DOTFILES/zsh/zshrc $HOME/.zshrc +fi