diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-11-22 00:43:12 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-11-22 00:45:48 +0530 |
| commit | b8e909d68bcb035648dda93f15de7863f444a3c4 (patch) | |
| tree | 3e6c13b1424d5005b595ea1d86f1b50a49b42390 /config/zsh/aliases/git.zsh | |
| parent | 7cca3043fa585dc0d0cef6a3f25756c946bee1aa (diff) | |
| download | nixos-config-b8e909d68bcb035648dda93f15de7863f444a3c4.tar.gz nixos-config-b8e909d68bcb035648dda93f15de7863f444a3c4.zip | |
Switch to kakoune + daffm
Diffstat (limited to '')
| -rw-r--r-- | config/zsh/aliases/git.zsh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/config/zsh/aliases/git.zsh b/config/zsh/aliases/git.zsh index c33781d..9611a16 100644 --- a/config/zsh/aliases/git.zsh +++ b/config/zsh/aliases/git.zsh @@ -54,14 +54,14 @@ alias grc='git rebase --continue' # egc : Open files in last commit # egc HEAD~1 : Open files in commit before the last one egc() { - nvim $(git show --name-only --pretty="" "$@"); + sensible-editor $(git show --name-only --pretty="" "$@"); } # Open files in diff # egd : Open files changed (HEAD) # egd origin/main : Open files diff between origin/main egd() { - nvim $(git diff --name-only ${1:-HEAD}); + sensible-editor $(git diff --name-only ${1:-HEAD}); } grename() { @@ -98,3 +98,13 @@ gco() { fi } +ghpr() { + if [ -f '.github/pull_request_template.md' ]; then + gh pr create -e -a "@me" -T 'pull_request_template.md' "$@" || true + else + gh pr create -e -a "@me" "$@" || true + fi + + xdg-open "$(gh pr view --json url -q .url)" +} + |
