Add lazygit
This commit is contained in:
parent
99325028cd
commit
21344a8114
|
@ -90,6 +90,16 @@ then
|
|||
rm -f lf-linux-amd64.tar.gz
|
||||
fi
|
||||
|
||||
# install lazygit
|
||||
if ! command -v lazygit &> /dev/null
|
||||
then
|
||||
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
|
||||
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
|
||||
tar xf lazygit.tar.gz lazygit
|
||||
sudo install lazygit /usr/local/bin
|
||||
rm -rf ./lazygit*
|
||||
fi
|
||||
|
||||
# install opencommit
|
||||
if ! command -v opencommit &> /dev/null
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue