-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_install
More file actions
executable file
·30 lines (23 loc) · 824 Bytes
/
_install
File metadata and controls
executable file
·30 lines (23 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
############################
# .make.sh
# This script creates symlink from the home directory to ~/.config/nvim
############################
########## Variables
dir=~/vimfiles # vimfiles directory
olddir=~/vimfiles_old # old vimfiles backup directory
##########
# create vimfiles_old in homedir
echo "Creating $olddir for backup of any existing nvimfiles in ~"
mkdir -p $olddir
echo "...done"
# change to the vimfiles directory
echo "Changing to the $dir directory"
cd $dir
echo "...done"
# move existing nvim dir into backup and link new to the old location
echo "Moving any existing nvim dir from ~ to $olddir"
mv ~/.config/nvim ~/vimfiles_old
echo "Creating symlink to ~/vimfiles/nvim in home directory."
ln -s ~/vimfiles/nvim ~/.config/nvim
mkdir ~/.tmp || "complete"