|
@@ -1,14 +1,17 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
if [ -f "$HOME/.vimrc" ]; then |
|
|
if [ -f "$HOME/.vimrc" ]; then |
|
|
|
|
|
rm -rf $HOME/vimrc.old 2>&1 |
|
|
mv $HOME/.vimrc $HOME/vimrc.old |
|
|
mv $HOME/.vimrc $HOME/vimrc.old |
|
|
echo "There was already a .vimrc file, renamed to vimrc.old" |
|
|
echo "There was already a .vimrc file, renamed to vimrc.old" |
|
|
fi |
|
|
fi |
|
|
if [ -d "$HOME/.vim" ]; then |
|
|
if [ -d "$HOME/.vim" ]; then |
|
|
|
|
|
rm -rf $HOME/vim.old 2>&1 |
|
|
mv $HOME/.vim $HOME/vim.old |
|
|
mv $HOME/.vim $HOME/vim.old |
|
|
echo "There was already a .vim folder, renamed to vim.old" |
|
|
echo "There was already a .vim folder, renamed to vim.old" |
|
|
fi |
|
|
fi |
|
|
if [ -f "$HOME/.gvimrc" ]; then |
|
|
if [ -f "$HOME/.gvimrc" ]; then |
|
|
|
|
|
rm -rf $HOME/gvimrc.old 2>&1 |
|
|
mv $HOME/.gvimrc $HOME/gvimrc.old |
|
|
mv $HOME/.gvimrc $HOME/gvimrc.old |
|
|
echo "There was already a .gvimrc file, renamed to gvimrc.old" |
|
|
echo "There was already a .gvimrc file, renamed to gvimrc.old" |
|
|
fi |
|
|
fi |
|
|