commit 32c45e706d427a71707e2b270946739420c04d0a
parent 13f53071b5e1e7198a5e6ef2c7a10b789fbbfb8e
Author: MichaĆ Sapka <michal@sapka.me>
Date: Fri, 7 Oct 2022 21:51:43 +0200
feat: install basic prog
Diffstat:
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/asdf/.tool-versions b/asdf/.tool-versions
@@ -0,0 +1,5 @@
+nodejs 16.17.1
+rust 1.64.0
+golang 1.19.2
+ruby 3.1.2
+ghq 1.3.0
diff --git a/setup/ubuntu.sh b/setup/ubuntu.sh
@@ -14,8 +14,8 @@ curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
-sudo apt-add-repository ppa:fish-shell/release-3
-sudo add-apt-repository ppa:neovim-ppa/stable
+sudo apt-add-repository ppa:fish-shell/release-3 -y
+sudo add-apt-repository ppa:neovim-ppa/stable -y
sudo apt update && sudo apt upgrade
sudo apt install \
@@ -76,6 +76,8 @@ asdf install
# Install dotfiles
+rm ~/.tool-versions
+
ghq get -p git@github.com/michalsapka/dotfiles.git
cd "$HOME/ghq/github.com/michalsapka/dotfiles"
@@ -85,6 +87,7 @@ stow fish --dir="$HOME/ghq/github.com/michalsapka/dotfiles" --target="$HOME"
stow zsh --dir="$HOME/ghq/github.com/michalsapka/dotfiles" --target="$HOME"
stow bin --dir="$HOME/ghq/github.com/michalsapka/dotfiles" --target="$HOME"
stow alacritty --dir="$HOME/ghq/github.com/michalsapka/dotfiles" --target="$HOME"
+stow asdf --dir="$HOME/ghq/github.com/michalsapka/dotfiles" --target="$HOME"
# Use Fish shell
@@ -95,7 +98,8 @@ chsh -s /usr/bin/fish
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
~/.tmux/plugins/tpm/bin/install_plugins
+# Install all asdf packages
-
+asdf install
echo "Setup done!"