mirror of https://github.com/aldy505/dotfiles.git
update small typo
This commit is contained in:
parent
5d27f78a1a
commit
906fa6be6f
|
@ -8,6 +8,8 @@ function install () {
|
||||||
sudo rm -rf /usr/local/go
|
sudo rm -rf /usr/local/go
|
||||||
sudo tar -C /usr/local -xzf go$VERSION.linux-amd64.tar.gz
|
sudo tar -C /usr/local -xzf go$VERSION.linux-amd64.tar.gz
|
||||||
rm 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 () {
|
function uninstall () {
|
||||||
|
|
|
@ -18,6 +18,7 @@ function install_bat () {
|
||||||
|
|
||||||
if [ "$1" == "install" ]; then
|
if [ "$1" == "install" ]; then
|
||||||
install_exa
|
install_exa
|
||||||
|
install_bat
|
||||||
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
|
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
|
||||||
uninstall
|
uninstall
|
||||||
else
|
else
|
||||||
|
|
25
setup.sh
25
setup.sh
|
@ -1,21 +1,28 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ME="/home/$(whoami)"
|
ME="/home/$(whoami)"
|
||||||
CFG="$(ME)/.config"
|
CFG="${ME}/.config"
|
||||||
DOTFILES="$(ME)/dotfiles"
|
DOTFILES="${ME}/dotfiles"
|
||||||
BINDIR="$(ME)/dotfiles/bin"
|
BINDIR="${ME}/dotfiles/bin"
|
||||||
|
|
||||||
echo "I'm assuming you're doing a fresh install. Send a SIGTERM anytime you like."
|
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
|
if test ! $(which fnm); then
|
||||||
echo "Installing fnm"
|
./scripts/node.sh install
|
||||||
/bin/sh curl -fsSL https://fnm.vercel.app/install | bash -s -- --skip-shell
|
|
||||||
$(ME)/.fnm/fnm fnm install lts
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test ! $(which go); then
|
if test ! $(which go); then
|
||||||
echo "Installing go"
|
./scripts/go.sh install
|
||||||
/bin/sh wget https://golang.org/dl/go1.16.6.linux-amd64.tar.gz
|
fi
|
||||||
|
|
||||||
|
if test ! $(which julia); then
|
||||||
|
./scripts/julia.sh install
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test ! $(which nvim); then
|
||||||
|
./scripts/neovim.sh install
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue