Skip to content

Commit 744e944

Browse files
committed
Update ubuntu.sh
1 parent 69dc933 commit 744e944

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

scripts/ubuntu.sh

+10-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ _has() {
99
sudo apt install -y \
1010
bat \
1111
build-essential \
12-
clang-15 \
1312
curl \
1413
fd-find \
1514
git \
@@ -32,8 +31,8 @@ if ! _has nvim; then
3231
wget https://github.com/neovim/neovim/releases/download/stable/nvim.appimage
3332
chmod +x nvim.appimage
3433
./nvim.appimage --appimage-extract
35-
sudo mv squashfs-root /
36-
sudo ln -s /squashfs-root/AppRun /usr/bin/nvim
34+
sudo mv squashfs-root /usr/local/bin/nvim-squashfs-root
35+
sudo ln -s /usr/local/bin/squashfs-root/AppRun /usr/local/bin/nvim
3736
rm nvim.appimage
3837
fi
3938

@@ -58,3 +57,11 @@ if ! _has lazygit; then
5857
install lazygit "$HOME"/.local/bin
5958
rm -r lazygit lazygit.tar.gz
6059
fi
60+
61+
if ! _has cargo; then
62+
curl https://sh.rustup.rs -sSf | sh | yes
63+
fi
64+
65+
if ! _has nvm; then
66+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
67+
fi

0 commit comments

Comments
 (0)