From c4fe470890fc38217e300181c73ab1b1d5ea54f0 Mon Sep 17 00:00:00 2001 From: Ted Kulp Date: Wed, 14 Aug 2024 07:34:36 -0400 Subject: [PATCH] feat: ability to use lazygit for yadm --- .config/yadm/lazygit.yml | 3 +++ .config/zsh/git.zsh | 1 + 2 files changed, 4 insertions(+) create mode 100644 .config/yadm/lazygit.yml diff --git a/.config/yadm/lazygit.yml b/.config/yadm/lazygit.yml new file mode 100644 index 0000000..8a9925a --- /dev/null +++ b/.config/yadm/lazygit.yml @@ -0,0 +1,3 @@ +keybinding: + files: + toggleStagedAll: "" # avoid "stage/unstage all" since it hangs lazygit, cause I guess it tries to list all files diff --git a/.config/zsh/git.zsh b/.config/zsh/git.zsh index 9d78f41..67dc558 100644 --- a/.config/zsh/git.zsh +++ b/.config/zsh/git.zsh @@ -1,6 +1,7 @@ alias ghm='git push heroku master' alias gpp='git pull origin "(git_current_branch)" && git push origin "(git_current_branch)"' alias gfap='git pull --all -p' +alias ly='lazygit --use-config-file "$HOME/.config/yadm/lazygit.yml,$HOME/Library/Application Support/lazygit/config.yml" --work-tree ~ --git-dir ~/.local/share/yadm/repo.git' function gctest () { local branch="${1:-master}"