Update dot_zshrc.local

This commit is contained in:
Jinks 2022-07-05 18:43:23 +02:00
parent c7e11a8004
commit c255b6c34b

View file

@ -146,6 +146,13 @@ lowercase()
done done
fi 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 # Global aliases -- These do not have to be at the beginning of
# the command line. # the command line.