From 8fd23ce51007463e5ba088f63fe4900f0ee4e639 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Tue, 22 Sep 2020 11:00:45 -0300 Subject: [PATCH] Corrected a bunch of tiny problems in the install script --- install.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index b9065e6..4fc8ce9 100755 --- a/install.sh +++ b/install.sh @@ -10,7 +10,7 @@ kitty() { ln -sf $PWD/kitty ~/.config/kitty } -git() { +gitconfg() { echo "Installing git aliases..." git config --global alias.pushup 'push -u origin HEAD' git config --global alias.please 'push --force-with-lease' @@ -18,11 +18,11 @@ git() { git config --global alias.slog 'log --oneline --decorate' } -bash() { +bashcfg() { echo "Installing Bash scripts..." for file in ./bash/*.bash; do - echo "$file" >> ~/.bashrc + echo "### $file" >> ~/.bashrc cat $file >> ~/.bashrc echo "" >> ~/.bashrc done @@ -40,8 +40,9 @@ bat() { nvim() { echo "Installing NeoVim configuration..." - ln -sf ~/nvim ~/.config - cd ~/.config/nvim + mkdir -p $HOME/.config 2> /dev/null + ln -sf $PWD/nvim ~/.config + cd $HOME/.config/nvim git submodule init git submodule update cd - @@ -50,5 +51,5 @@ nvim() { nvim starship kitty -git -bash +gitconfg +bashcfg