update small typo

This commit is contained in:
Reinaldy Rafli 2021-07-28 02:12:03 +07:00
parent 5d27f78a1a
commit 906fa6be6f
3 changed files with 19 additions and 9 deletions

View File

@ -8,6 +8,8 @@ function install () {
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go$VERSION.linux-amd64.tar.gz
rm go$VERSION.linux-amd64.tar.gz
sudo rm $HOME/.config/go/env
ln -s $HOME/dotfiles/go/env $HOME/.config/go/env
}
function uninstall () {

View File

@ -18,6 +18,7 @@ function install_bat () {
if [ "$1" == "install" ]; then
install_exa
install_bat
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
uninstall
else

View File

@ -1,21 +1,28 @@
#!/bin/bash
ME="/home/$(whoami)"
CFG="$(ME)/.config"
DOTFILES="$(ME)/dotfiles"
BINDIR="$(ME)/dotfiles/bin"
CFG="${ME}/.config"
DOTFILES="${ME}/dotfiles"
BINDIR="${ME}/dotfiles/bin"
echo "I'm assuming you're doing a fresh install. Send a SIGTERM anytime you like."
sudo apt get -y
sudo apt install -y curl wget openssl tar unzip git
sudo chmod -R 755 ./scripts
if test ! $(which fnm); then
echo "Installing fnm"
/bin/sh curl -fsSL https://fnm.vercel.app/install | bash -s -- --skip-shell
$(ME)/.fnm/fnm fnm install lts
./scripts/node.sh install
fi
if test ! $(which go); then
echo "Installing go"
/bin/sh wget https://golang.org/dl/go1.16.6.linux-amd64.tar.gz
./scripts/go.sh install
fi
if test ! $(which julia); then
./scripts/julia.sh install
fi
if test ! $(which nvim); then
./scripts/neovim.sh install
fi