From: Oleg Broytman Date: Tue, 15 Mar 2016 23:36:16 +0000 (+0300) Subject: .gitconfig: use function instead of subshell X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=43b00922a945a8a91977b72417c151eba23a15d2;p=dotfiles.git .gitconfig: use function instead of subshell Shell functions are more efficient than calling a new shell. --- diff --git a/.gitconfig b/.gitconfig index 3ec2ca0..9301b8e 100644 --- a/.gitconfig +++ b/.gitconfig @@ -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