28 lines
823 B
Bash
Executable File
28 lines
823 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ ! -z "$1" ]; then
|
|
SCRIPTS=$1
|
|
else
|
|
SCRIPTS=${HOME}/devel/scripts
|
|
fi
|
|
|
|
find ${SCRIPTS}/config -name .\* -type f -exec ln -i \{\} . \;
|
|
find ${SCRIPTS}/config -name .\* -type d -exec ln -i -s \{\} . \;
|
|
|
|
#mkdir -p .vim/autoload .vim/bundle
|
|
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
# curl -LSso .vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
|
|
# git clone https://github.com/VundleVim/Vundle.vim.git .vim/bundle/Vundle.vim
|
|
|
|
|
|
#
|
|
# Add .bashrc.vahagn to .bashrc
|
|
#
|
|
grep .bashrc.vahagn .bashrc
|
|
if [ $? != 0 ]; then
|
|
printf "# Load Vahagn's standard environment.\n"
|
|
printf "[ -f ~/.bashrc.vahagn ] && source ~/.bashrc.vahagn\n" >> .bashrc
|
|
printf "[ -f ~/.bashrc.local ] && source ~/.bashrc.local\n" >> .bashrc
|
|
fi
|