mirror of
https://github.com/pnx/dotfiles
synced 2026-10-14 12:16:47 +02:00
add lazygit install script
This commit is contained in:
parent
11cf5ad197
commit
c7cf88af98
1 changed files with 15 additions and 0 deletions
15
install/lazygit.sh
Executable file
15
install/lazygit.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
VERSION=0.65.0
|
||||
TARFILE=lazygit_${VERSION}_linux_x86_64.tar.gz
|
||||
URL="https://github.com/jesseduffield/lazygit/releases/download/v${VERSION}/${TARFILE}"
|
||||
PREFIX=/usr/local
|
||||
WORKDIR="/tmp/lazygit-${VERSION}"
|
||||
|
||||
mkdir -p "$WORKDIR"
|
||||
pushd "$WORKDIR" > /dev/null
|
||||
[ -f "${TARFILE}" ] || wget -q "$URL"
|
||||
[ -f "lazygit" ] || tar -xf "${TARFILE}"
|
||||
sudo install -p -o root -g root -m 755 -t "$PREFIX/bin" lazygit
|
||||
popd > /dev/null
|
||||
Loading…
Add table
Add a link
Reference in a new issue