-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall
29 lines (26 loc) · 893 Bytes
/
install
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
#!/usr/bin/env bash
#mkdir -p $XDG_CONFIG_HOME/nvim/plugin
#mkdir -p $XDG_CONFIG_HOME/nvim/after/plugin
#mkdir -p $XDG_CONFIG_HOME/nvim/lua/lqf
#mkdir -p $XDG_CONFIG_HOME/nvim/lua/lsp
#mkdir -p $XDG_CONFIG_HOME/nvim/lua/plugin
mkdir -p $XDG_CONFIG_HOME/nvim/ftplugin
mkdir -p $XDG_CONFIG_HOME/tmux/tpm
mkdir -p $XDG_CONFIG_HOME/nvim/lua/control
mkdir -p $XDG_CONFIG_HOME/nvim/lua/features
# link wholesale
for f in `find . -regex ".*\.vim$\|.*\.lua$"`; do
if [[ $f =~ control|features|ftplugin ]]; then
rm -rf $XDG_CONFIG_HOME/nvim/$f
ln -s ~/.dotfiles/$f $XDG_CONFIG_HOME/nvim/$f
echo $f
fi
done
for f in `find . -regex ".*\.toml$"`; do
rm -rf $XDG_CONFIG_HOME/$f
ln -s ~/.dotfiles/$f $XDG_CONFIG_HOME/$f
done
for f in `find . -regex ".*tmux.conf$\|.*tmux-.*\.sh$"`; do
rm -rf $XDG_CONFIG_HOME/tmux/$f
ln -s ~/.dotfiles/$f $XDG_CONFIG_HOME/tmux/$f
done