Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 674 Bytes

README_COMMANDS.md

File metadata and controls

28 lines (23 loc) · 674 Bytes

Command Line Usage

Windows

subl --command "sbs_compare_files {\"A\":\"file1\", \"B\":\"file2\"}"
Requires additional escaping of backslashes in file paths.

compare.bat
Usage: compare.bat file1.txt file2.txt

set file1=%~1
set file1=%file1:\=\\%
set file2=%~2
set file2=%file2:\=\\%
subl --command "sbs_compare_files {\"A\":\"%file1%\", \"B\":\"%file2%\"}"

Linux/OSX

subl --command 'sbs_compare_files {"A":"file1", "B":"file2"}'
Untested on OSX, but should be the same as Linux.

compare.sh
Usage: compare.sh file1.txt file2.txt

#!/bin/sh
eval subl3 --command \'sbs_compare_files {\"A\":\"$1\", \"B\":\"$2\"}\'