aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-06 16:50:46 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-06 16:50:46 +0100
commitfdb9d0baf798c147360a2ca44ea6761abf7f96c3 (patch)
tree17e71ed3284ab6e28079e226030faee71c355d81 /install.sh
parentc5eacb8ca315bbf5f9e03e19505ff9f14eacca49 (diff)
downloaddotfiles-fdb9d0baf798c147360a2ca44ea6761abf7f96c3.tar.gz
dotfiles-fdb9d0baf798c147360a2ca44ea6761abf7f96c3.tar.bz2
dotfiles-fdb9d0baf798c147360a2ca44ea6761abf7f96c3.zip
Vim madness started, fix install.sh typo
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh24
1 files changed, 14 insertions, 10 deletions
diff --git a/install.sh b/install.sh
index d866f32..4076d59 100755
--- a/install.sh
+++ b/install.sh
@@ -8,18 +8,18 @@
[ -z $DOTDIR ] && DOTDIR=`pwd`
# Creating links
-ls -sf $DOTDIR/.zshrc $HOME/.zshrc
-ls -sf $DOTDIR/.vimrc $HOME/.vimrc
+ln -sf $DOTDIR/.zshrc $HOME/.zshrc
+ln -sf $DOTDIR/.vimrc $HOME/.vimrc
[ ! -d $HOME/.xmonad ] && mkdir $HOME/.xmonad
-ls -sf $DOTDIR/xmonad.hs $HOME/.xmonad/xmonad.hs
+ln -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
+ln -sf $DOTDIR/.gdbinit $HOME/.gdbinit
+ln -sf $DOTDIR/.ghci $HOME/.ghci
+ln -sf $DOTDIR/.gitconfig $HOME/.gitconfig
[ ! -d $HOME/.config ] && mkdir $HOME/.config
-ls -sf $DOTDIR/redshift.conf $HOME/.config/redshift.conf
+ln -sf $DOTDIR/redshift.conf $HOME/.config/redshift.conf
################
# dependencies #
@@ -33,10 +33,14 @@ 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
+[ ! -d $HOME/.zsh/pure ] && \
+ git clone https://github.com/sindresorhus/pure \
+ $HOME/.zsh/pure
# syntax hightlighting
-git clone https://github.com/zsh-users/zsh-syntax-highlighting \
+[ ! -d $HOME/.zsh/zsh-syntax-highlighting ] && \
+ 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 \
+[ ! -d $HOME/.zsh/zsh-you-should-use ] && \
+ git clone https://github.com/MichaelAquilina/zsh-you-should-use \
$HOME/.zsh/zsh-you-should-use