summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rwxr-xr-xinstall25
1 files changed, 6 insertions, 19 deletions
diff --git a/install b/install
index fe5344e..bf69ac8 100755
--- a/install
+++ b/install
@@ -6,35 +6,22 @@ cd $(dirname $BASH_SOURCE)
BASE=$(pwd)
# dotfiles to install
-for dotfile in bashrc vimrc gitconfig gitignore Rprofile tmux.conf reportbugrc zshrc p10k.zsh; do
+for dotfile in bashrc gitconfig gitignore Rprofile reportbugrc vimrc zshrc p10k.zsh; do
mkdir -pv bak
[ -e ~/.$dotfile ] && mv -v ~/.$dotfile bak/.$dotfile
ln -sfv $BASE/$dotfile ~/.$dotfile
done
# nvim config
-if [ ! -e ~/.config/nvim ]; then
- ln -sfv ~/.vim ~/.config/nvim
-fi
-if [ ! -e ~/.config/nvim/init.vim ]; then
- ln -sfv ~/.vimrc ~/.config/nvim/init.vim
+if [ ! -e ~/.config ]; then
+ mkdir -pv ~/.config
fi
-
-
-# git-prompt
-if [ ! -e ~/.git-prompt.sh ]; then
- curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
+if [ ! -e ~/.config/nvim ]; then
+ ln -sfv $BASE/nvim ~/.config/nvim
fi
# scripts
-mkdir -pv ~/bin
+mkdir -pv ~/.local/bin
for bin in $BASE/bin/*; do
ln -svf $bin ~/.local/bin
done
-
-# install vim-plug
-if [ ! -e ~/.vim/autoload/plug.vim ]; then
- echo Installing plug.vim from https://github.com/junegunn/vim-plug to ~/.vim/autoload/
- curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
- https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
-fi

Contact - Imprint