Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

install-test feedbacks

  • Loading branch information...
commit 51b5016521c223e1c7414260ca1ed67d87183f4a 1 parent 686ad51
@ronanguilloux authored
Showing with 17 additions and 4 deletions.
  1. +17 −4 install.sh
View
21 install.sh
@@ -1,10 +1,23 @@
#!/bin/bash
# move original dotfiles
-mv ~/.bashrc ~/.bashrc-dist
-mv ~/.vim ~/.vim-dist
-mv ~/.gitconfig ~/.gitconfig.local
-
+if [ -f /.bashrc ]
+then
+ mv -f ~/.bashrc ~/.bashrc-dist
+fi
+if [ -f /.bash_aliases ]
+then
+ mv -f ~/.bash_aliases ~/.bash_aliases-dist
+fi
+if [ -d /.vim ]
+ mv -f ~/.vim ~/.vim-dist
+fi
+if [ -f /.gitignore_global ]
+ mv -f ~/.gitignore_global ~/.gitignore_global-dist
+fi
+if [ -f /.gitconfig ]
+ mv -f ~/.gitconfig ~/.gitconfig.local
+fi
# create symlinks
ln -s ~/dotfiles/.bashrc ~/.bashrc
ln -s ~/dotfiles/.vim ~/.vim
Please sign in to comment.
Something went wrong with that request. Please try again.