Skip to content

Commit

Permalink
Remove gpg lazygit workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
felixschndr committed Jan 22, 2025
1 parent ce19dc1 commit 5681b30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions AliasesAndFunctions/default/functions
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,11 @@ install_lazygit() { # install or update
if is_mac_os; then
brew install lazygit
else
latest_version=$(curl -s "https://api.github.com/repos/felixschndr/lazygit-without-gpg-restriction/releases/latest" | jq -r '.tag_name')
curl -sLo lazygit "https://github.com/felixschndr/lazygit-without-gpg-restriction/releases/latest/download/lazygit_${latest_version}_linux"
sudo install lazygit /usr/local/bin
rm lazygit
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/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit -D -t /usr/local/bin/
rm lazygit lazygit.tar.gz
fi
}

Expand Down
4 changes: 3 additions & 1 deletion Configurations/lazygit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ customCommands:
- key: <c-d>
context: "localBranches, remoteBranches"
command: bash -ic "git_delete_old_branches"
stream: true
stream: true
git:
overrideGpg: true

0 comments on commit 5681b30

Please sign in to comment.