vim/install.sh

22 lines
514 B
Bash
Raw Normal View History

2016-12-27 19:38:56 -07:00
#!/bin/bash
clear
printf " List of files\n"
printf "============================\n"
printf "file: .viminfo\n"
printf "file: .vimrc\n"
printf "Dir : .vim_runtime\n"
printf "Dir : .vim_mru_files\n"
printf "============================\n"
printf "Copy all these files to /home/${USER}?: [y/n]"
read answer
if [ "${answer}" = "y" ];then
cp -v -r {.viminfo,.vim_mru_files,.vimrc,.vim_runtime} ~
elif [ "${answer}" = "n" ];then
exit 0;
else
printf "${0}: Invalid command, please enter 'y' or 'n'\n"
fi