diff --git a/dot_zshrc.local b/dot_zshrc.local index 74a6a90..8cdf021 100644 --- a/dot_zshrc.local +++ b/dot_zshrc.local @@ -146,6 +146,13 @@ lowercase() done fi } +dirdiff() +{ + # Shell-escape each path: + DIR1=$(printf '%q' "$1"); shift + DIR2=$(printf '%q' "$1"); shift + nvim $@ -c "DirDiff $DIR1 $DIR2" +} # Global aliases -- These do not have to be at the beginning of # the command line.