Patch up installer

Was getting into some weird territory where ZSH syntax was creeping in.
Reworked to be a pure shell script and updated the install instructions to
reflect that. Also a small bit of additional clean up in there.

Fixes #24
This commit is contained in:
Josh Sherman 2019-09-29 12:19:33 -05:00
parent cfc516a82c
commit 600e1adb8b
2 changed files with 4 additions and 3 deletions

View file

@ -6,7 +6,7 @@ master my life. My `dotfiles`, without me, are useless. Without my `dotfiles`, I
am useless. am useless.
```shell ```shell
source <(curl -s https://raw.githubusercontent.com/joshtronic/dotfiles/master/install) sh -c "$(curl -fsSL https://raw.githubusercontent.com/joshtronic/dotfiles/master/install)"
``` ```
![LeePaceCelebrate](http://i.giphy.com/Vc5x1pG5RFH3O.gif) ![LeePaceCelebrate](http://i.giphy.com/Vc5x1pG5RFH3O.gif)

5
install Executable file → Normal file
View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env sh
if [ -z "$HOME" ]; then echo "Seems you're \$HOMEless :("; exit 1; fi if [ -z "$HOME" ]; then echo "Seems you're \$HOMEless :("; exit 1; fi
@ -86,13 +86,14 @@ for INDEX in ${!VIMPLUGS[*]}; do
$GITCLONE "https://github.com/$VIMPLUG.git" "$HOME/.vim/pack/plugins/start/$PLUGDIR" $GITCLONE "https://github.com/$VIMPLUG.git" "$HOME/.vim/pack/plugins/start/$PLUGDIR"
done done
curl -o "$HOME/.vim/colors/" https://raw.githubusercontent.com/altercation/vim-colors-solarized/master/colors/solarized.vim curl -o "$HOME/.vim/colors/solarized.vim" https://raw.githubusercontent.com/altercation/vim-colors-solarized/master/colors/solarized.vim
cd "$HOME" || exit cd "$HOME" || exit
rm -f "${HOME}/.zcompdump*" rm -f "${HOME}/.zcompdump*"
# Required to kill the terminal's border in GNOME 3.32+ # Required to kill the terminal's border in GNOME 3.32+
gsettings set org.gnome.Terminal.Legacy.Settings headerbar "@mb false" gsettings set org.gnome.Terminal.Legacy.Settings headerbar "@mb false"
echo
echo "If this is your first time, you should restart GNOME" echo "If this is your first time, you should restart GNOME"
echo echo