Skip to content

Commit a9dd3ef

Browse files
committed
Use rg to capture tag_version for lazygit
1 parent 5615275 commit a9dd3ef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/hf-setup.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ install_package pkg-config
151151
# somewhat frequently when working with gRPC
152152
install_package protobuf-compiler
153153
154+
# Also install `cmake` which is required for building some packages from source
155+
install_package cmake
156+
154157
# Remove pyenv if it exists
155158
if [ -d "$HOME/.pyenv" ]; then
156159
echo "Removing pyenv..."
@@ -229,7 +232,7 @@ fi
229232
# Install LazyGit
230233
if ! command -v lazygit &> /dev/null; then
231234
echo "Installing LazyGit..."
232-
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
235+
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | rg -Po '"tag_name": "v\K[^"]*')
233236
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
234237
tar xf lazygit.tar.gz lazygit
235238
sudo install lazygit /usr/local/bin

0 commit comments

Comments
 (0)