using symlink instead of hard copy

This commit is contained in:
infidel 2022-03-24 00:01:51 +07:00
parent 97631e0fe8
commit de40f4f988

View File

@ -1,8 +1,17 @@
#!/bin/bash #!/bin/bash
cp ./.vimrc /home/$(whoami)/ # cp ./.vimrc /home/$(whoami)/
cp -r ./.vim/ /home/$(whoami)/ # cp -r ./.vim/ /home/$(whoami)/
cp -r ./.tmux.conf /home/$(whoami)/ # cp -r ./.tmux.conf /home/$(whoami)/
echo "VIM Conf"
ln -sf $(pwd)/.vimrc /home/$(whoami)/
ln -sf $(pwd)/.vim/ /home/$(whoami)/
echo "TMUX Conf"
ln -sf $(pwd)/.vimrc /home/$(whoami)/
ln -sf $(pwd)/.tmux.conf /home/$(whoami)/
echo "TMUX Plugin"
mkdir -p "/home/$(whoami)/.tmux/plugins" mkdir -p "/home/$(whoami)/.tmux/plugins"
[ -d "/home/$(whoami)/.tmux/plugins/tpm" ] || git clone https://github.com/tmux-plugins/tpm /home/$(whoami)/.tmux/plugins/tpm [ -d "/home/$(whoami)/.tmux/plugins/tpm" ] || git clone https://github.com/tmux-plugins/tpm /home/$(whoami)/.tmux/plugins/tpm