mirror of
https://github.com/Hizenberg469/Vim-tutorials.git
synced 2026-04-20 06:12:24 +03:00
env setup
This commit is contained in:
23
env_setup.sh
Normal file
23
env_setup.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/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
|
||||
}
|
||||
Reference in New Issue
Block a user