Add margin inside if statements

This commit is contained in:
2021-11-17 19:17:42 +03:00
parent fead5234ae
commit bd77243ad0

View File

@@ -60,39 +60,33 @@ fi
# Install all configs # Install all configs
if [ "$1" = "-S" ] ; then if [ "$1" = "-S" ] ; then
# Create symlinks
for config in "${!configs[@]}"
do
ln -s $config ${configs[$config]}
done
# Install packer.nvim
mkdir ~/.local/share/nvim/site/pack
git clone --depth 1 https://github.com/wbthomason/packer.nvim \
~/.local/share/nvim/site/pack/packer/start/packer.nvim
# Create symlinks # Install vim plugins
for config in "${!configs[@]}" nvim -c "PackerInstall"
do
ln -s $config ${configs[$config]}
done
# Install packer.nvim
mkdir ~/.local/share/nvim/site/pack
git clone --depth 1 https://github.com/wbthomason/packer.nvim \
~/.local/share/nvim/site/pack/packer/start/packer.nvim
# Install vim plugins
nvim -c "PackerInstall"
if [[ ! -d "$bashCompletionsDir" ]] ; then
__install_bash_completions
fi
if [[ ! -d "$bashCompletionsDir" ]] ; then
__install_bash_completions
fi
fi fi
# Remove all configs # Remove all configs
if [ "$1" = "-R" ] ; then if [ "$1" = "-R" ] ; then
for config in "${!configs[@]}"
do
rm -rf ${configs[$config]}
done
cd $HOME rm -rf "$bashCompletionsDir"
for config in "${!configs[@]}"
do
rm -rf ${configs[$config]}
done
rm -rf "$bashCompletionsDir"
fi fi