Copybara bot | ca5ce64 | 2024-11-08 17:38:08 +0100 | [diff] [blame] | 1 | #!/bin/bash |
2 | # Adapted a little bit for my setup. | ||||
3 | # @source https://github.com/martinvonz/jj/wiki/Vim/e9c31b7b424f2ce69bfd549e18116a57480c48ca | ||||
4 | |||||
5 | # Shell-escape each path: | ||||
6 | DIR1=$(printf '%q' "$1"); shift | ||||
7 | DIR2=$(printf '%q' "$1"); shift | ||||
8 | |||||
9 | # The colorscheme is only important on Vim versions older than 9.0 | ||||
10 | nvim "$@" -c "DirDiff $DIR1 $DIR2" |