nix

configuration files that power my machines
Log | Files | Refs | README | LICENSE

commit c1624b61ae4212d20f2f87c7c0d9ead4d08c97b6
parent 16e3180e76ba57030cf1cb7f8774a15eac850151
Author: mtmn <miro@haravara.org>
Date:   Wed, 10 Jun 2026 17:30:33 +0200

git: add aliases for checkout and switch

Diffstat:
Mmodules/mixins/dotfiles/config/shell/rc/git | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/mixins/dotfiles/config/shell/rc/git b/modules/mixins/dotfiles/config/shell/rc/git @@ -38,6 +38,9 @@ alias gdw='gd --color-words' alias ghr='git history reword' alias ghs='git history split' +alias gco='git checkout' +alias gsw='git switch' + # Logs alias glm='gl master@{u}..' alias glma='gl main@{u}..' @@ -71,11 +74,6 @@ gf() { fi } -gco() { - git checkout "$1" - unset _VCS_LAST_PWD -} - gcopr() { git fetch origin pull/"${1?need pr num}"/head:pr"$1" && gco pr"$1" }