]> git.phdru.name Git - dotfiles.git/blobdiff - .gitconfig
.gitconfig: use function instead of subshell
[dotfiles.git] / .gitconfig
index 3ec2ca05f54a90d0bb9b19030895b8c06467c29b..9301b8eb248bb7fb3e8c2498e8397262f9a85a2d 100644 (file)
@@ -19,7 +19,7 @@
        lr5 = log --decorate --reverse -5
        null-merge = merge --strategy=ours
        remotes = remote -v
-       ri = "!sh -c 'git rebase --interactive --autosquash --preserve-merges ${1:-\"@{u\\}\"}' -"
+       ri = "!f() { git rebase --interactive --autosquash --preserve-merges ${1:-\"@{u\\}\"}; }; f"
        #root = !pwd
        root = rev-parse --show-toplevel
        st = status --short