Last active
June 23, 2024 04:33
-
-
Save jost125/f4adb4b3b4a36242b8d29f195e384645 to your computer and use it in GitHub Desktop.
Custom tig shortcuts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Custom commands | |
| bind generic <Ctrl-A> !git commit --amend | |
| # Custom commands in tig status, works after pressing key on selected file from list | |
| bind generic i !git add -p %(file) | |
| # Custom commands in tig, works after pressing key on selected commit from list | |
| bind generic f !git commit --fixup=%(commit) | |
| bind generic <Ctrl-H> !@sh -c "echo -n %(commit) | xclip -selection primary" # copy commit hash into primary clipboard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment