aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-06 06:46:02 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-06 06:46:02 +0100
commitc5eacb8ca315bbf5f9e03e19505ff9f14eacca49 (patch)
tree0ab27a0697d900135f9716029a18c8f675b89960 /install.sh
parent85258644591c63cc24c8608d2c1d7331edba9f7d (diff)
downloaddotfiles-c5eacb8ca315bbf5f9e03e19505ff9f14eacca49.tar.gz
dotfiles-c5eacb8ca315bbf5f9e03e19505ff9f14eacca49.tar.bz2
dotfiles-c5eacb8ca315bbf5f9e03e19505ff9f14eacca49.zip
Replace Makefile by install.sh script
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh42
1 files changed, 42 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100755
index 0000000..d866f32
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+###########################
+# dotfiles install script #
+###########################
+
+# dotfiles directory
+[ -z $DOTDIR ] && DOTDIR=`pwd`
+
+# Creating links
+ls -sf $DOTDIR/.zshrc $HOME/.zshrc
+ls -sf $DOTDIR/.vimrc $HOME/.vimrc
+
+[ ! -d $HOME/.xmonad ] && mkdir $HOME/.xmonad
+ls -sf $DOTDIR/xmonad.hs $HOME/.xmonad/xmonad.hs
+
+ls -sf $DOTDIR/.gdbinit $HOME/.gdbinit
+ls -sf $DOTDIR/.ghci $HOME/.ghci
+ls -sf $DOTDIR/.gitconfig $HOME/.gitconfig
+
+[ ! -d $HOME/.config ] && mkdir $HOME/.config
+ls -sf $DOTDIR/redshift.conf $HOME/.config/redshift.conf
+
+################
+# dependencies #
+################
+
+# vim Plug
+curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
+ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+vim -c "PlugInstall" -c "qa"
+
+# zsh pluggins
+[ ! -d $HOME/.zsh ] && make $HOME/.zsh
+# pure theme
+git clone https://github.com/sindresorhus/pure $HOME/.zsh/pure
+# syntax hightlighting
+git clone https://github.com/zsh-users/zsh-syntax-highlighting \
+ $HOME/.zsh/zsh-syntax-highlighting
+# you should use
+git clone https://github.com/MichaelAquilina/zsh-you-should-use \
+ $HOME/.zsh/zsh-you-should-use