瀏覽代碼

Fix install

pull/1/head
Jérôme Deuchnord 6 年之前
父節點
當前提交
497e17c4e8
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 1934652EA16ECB3B
共有 1 個文件被更改,包括 11 次插入11 次删除
  1. +11
    -11
      scripts/install

+ 11
- 11
scripts/install 查看文件

@@ -1,19 +1,19 @@
#!/bin/bash

if [ -f "${HOME}/.vimrc" ]; then
#mv ${HOME}/.vimrc $HOME .vimrc.old
echo "There was already a .vimrc file, renamed to .vimrc.old"
if [ -f "$HOME/.vimrc" ]; then
mv $HOME/.vimrc $HOME/vimrc.old
echo "There was already a .vimrc file, renamed to vimrc.old"
fi
if [ -d "${HOME}/.vim" ]; then
#mv ${HOME}/.vim ${HOME} .vim.old
echo "There was already a .vim folder, renamed to .vim.old"
if [ -d "$HOME/.vim" ]; then
mv $HOME/.vim $HOME/vim.old
echo "There was already a .vim folder, renamed to vim.old"
fi
if [ -f "${HOME}/.gvimrc" ]; then
mv ${HOME}/.gvimrc $HOME .gvimrc.old
echo "There was already a .gvimrc file, renamed to .gvimrc.old"
if [ -f "$HOME/.gvimrc" ]; then
mv $HOME/.gvimrc $HOME/gvimrc.old
echo "There was already a .gvimrc file, renamed to gvimrc.old"
fi

#cp vim $HOME/.vim
#cp vimrc $HOME/.vimrc
cp -r vim $HOME/.vim
cp vimrc $HOME/.vimrc
cp gvimrc $HOME/.gvimrc


Loading…
取消
儲存