iterm/tmux: shortcuts for moving between panes

This commit is contained in:
Petr Nyc
2023-02-20 15:39:17 +01:00
parent 769f49730b
commit c9abc619cf
3 changed files with 43 additions and 1 deletions

View File

@@ -12,9 +12,21 @@
ci = commit
st = status
sglog = log --oneline --decorate --graph --all
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %Cblue<%an>%Creset' --abbrev-commit --date=relative
co = checkout
out = log --branches --not --remotes
vimdiff = difftool -y -t vimdiff
# tricks from https://www.durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/
# show vimdiff of the commit, for all files in the commit
diffc = "!f() { git diff ${1}^1 ${1}; }; f"
vimdiffc = "!f() { git vimdiff ${1}^1 ${1}; }; f"
# show diff for file in the commit
diffcf = "!f() { git diff ${1}^1 ${1} -- $2; }; f"
vimdiffcf = "!f() { git vimdiff ${1}^1 ${1} -- $2; }; f"
[user]
name = Petr Nyc
email = jet.jetpac@gmail.com