Browse Source

Corrected a bunch of tiny problems in the install script

master
Julio Biason 4 years ago
parent
commit
8fd23ce510
  1. 15
      install.sh

15
install.sh

@ -10,7 +10,7 @@ kitty() {
ln -sf $PWD/kitty ~/.config/kitty ln -sf $PWD/kitty ~/.config/kitty
} }
git() { gitconfg() {
echo "Installing git aliases..." echo "Installing git aliases..."
git config --global alias.pushup 'push -u origin HEAD' git config --global alias.pushup 'push -u origin HEAD'
git config --global alias.please 'push --force-with-lease' git config --global alias.please 'push --force-with-lease'
@ -18,11 +18,11 @@ git() {
git config --global alias.slog 'log --oneline --decorate' git config --global alias.slog 'log --oneline --decorate'
} }
bash() { bashcfg() {
echo "Installing Bash scripts..." echo "Installing Bash scripts..."
for file in ./bash/*.bash; for file in ./bash/*.bash;
do do
echo "$file" >> ~/.bashrc echo "### $file" >> ~/.bashrc
cat $file >> ~/.bashrc cat $file >> ~/.bashrc
echo "" >> ~/.bashrc echo "" >> ~/.bashrc
done done
@ -40,8 +40,9 @@ bat() {
nvim() { nvim() {
echo "Installing NeoVim configuration..." echo "Installing NeoVim configuration..."
ln -sf ~/nvim ~/.config mkdir -p $HOME/.config 2> /dev/null
cd ~/.config/nvim ln -sf $PWD/nvim ~/.config
cd $HOME/.config/nvim
git submodule init git submodule init
git submodule update git submodule update
cd - cd -
@ -50,5 +51,5 @@ nvim() {
nvim nvim
starship starship
kitty kitty
git gitconfg
bash bashcfg

Loading…
Cancel
Save