mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-19 22:02:24 +03:00
24 lines
322 B
Bash
24 lines
322 B
Bash
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# To setup the environment
|
|
|
|
function env_setup{
|
|
|
|
# Setting up the .vimrc
|
|
|
|
VIMRC_LOCATION = $(find $HOME/ -iwholename .vimrc)
|
|
if [ "$HOME/.vimrc" = "$VIMRC_LOCATION" ]; then
|
|
|
|
mv $HOME/.vimrc $HOME/.vimrc.bck
|
|
|
|
fi
|
|
|
|
|
|
mv $(pwd)/.vimrc $HOME/.vimrc
|
|
|
|
source $HOME/.vimrc
|
|
}
|