From e85d6410af991ec81b847541a48026ae973cde7e Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 29 Jul 2021 23:52:39 +0200 Subject: add navi cheats --- .local/share/navi/cheats/robertgzr__cheats/git.cheat | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .local/share/navi/cheats/robertgzr__cheats/git.cheat (limited to '.local/share/navi/cheats/robertgzr__cheats/git.cheat') diff --git a/.local/share/navi/cheats/robertgzr__cheats/git.cheat b/.local/share/navi/cheats/robertgzr__cheats/git.cheat new file mode 100644 index 0000000..01bccce --- /dev/null +++ b/.local/share/navi/cheats/robertgzr__cheats/git.cheat @@ -0,0 +1,9 @@ +% git + +# checkout branch +git checkout && git status + +$ branch: git branch -a --format='%(refname)' \ + | cut -d' ' -f1 \ + | sed -e 's#^refs/##' -e 's#^remotes/##' -e 's#^heads/##' \ + | sort -- cgit 1.4.1