-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimtemplates.sh
29 lines (28 loc) · 1011 Bytes
/
vimtemplates.sh
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
#!/bin/bash
#############################################################
#name:
#description:
#author: Fairdinkum Batan
#date:
#############################################################
clear
if [[ -d /home/batan/.vim/templates ]];
then
cp /home/batan/dot/templates/sklt* /home/batan/.vim/templates/
else
mkdir -p /home/batan/.vim/templates
cp /home/batan/dot/templates/sklt* /home/batan/.vim/templates/
fi
if [[ -d /home/batan/.vim/pack/plugins/start/vimwiki/autoload/vimwiki/ ]];
then
mv /home/batan/.vim/pack/plugins/start/vimwiki/autoload/vimwiki/default.tpl /home/batan/.vim/pack/plugins/start/vimwiki/autoload/vimwiki/default.tpl
else
mkdir /home/batan/.vim/pack/plugins/start/vimwiki/autoload/vimwiki/
mv /home/batan/.vim/pack/plugins/start/vimwiki/autoload/vimwiki/default.tpl /home/batan/.vim/pack/plugins/start/vimwiki/autoload/vimwiki/default.tpl
fi
clear
tput cup 2 0
echo "===================="
tput cup 0 0
echo " >>> DONE <<<"
read -n1 -p " Press [any] to exit" ccc