aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-07 23:40:57 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-07 23:40:57 +0100
commitbb31dbfd4e788f0efcbb0e6ab8264a12116aa672 (patch)
treebd09360c4e348c91f76af2f0bed7427c1fdc8b9b /install.sh
parentf4309c69498ae23959de904d38d23f6f8d667c09 (diff)
downloaddotfiles-bb31dbfd4e788f0efcbb0e6ab8264a12116aa672.tar.gz
dotfiles-bb31dbfd4e788f0efcbb0e6ab8264a12116aa672.tar.bz2
dotfiles-bb31dbfd4e788f0efcbb0e6ab8264a12116aa672.zip
xmonad brightness handling
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 4076d59..1929eb8 100755
--- a/install.sh
+++ b/install.sh
@@ -10,6 +10,8 @@
# Creating links
ln -sf $DOTDIR/.zshrc $HOME/.zshrc
ln -sf $DOTDIR/.vimrc $HOME/.vimrc
+[ ! -d $HOME/.vim/plugin ] && mkdir -p $HOME/.vim/plugin
+ln -sf $DOTDIR/grep.vim $HOME/.vim/plugin/grep.vim
[ ! -d $HOME/.xmonad ] && mkdir $HOME/.xmonad
ln -sf $DOTDIR/xmonad.hs $HOME/.xmonad/xmonad.hs
@@ -26,8 +28,11 @@ ln -sf $DOTDIR/redshift.conf $HOME/.config/redshift.conf
################
# vim Plug
-curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
+PLUGFILE=$HOME/.vim/autoload/plug.vim
+if [ ! -f $PLUGFILE ]; then
+curl -fLo $PLUGFILE --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+fi
vim -c "PlugInstall" -c "qa"
# zsh pluggins