Files
Vim-tutorials/env_setup.sh
2025-08-25 19:53:48 +03:00

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
}