1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-10-16 11:40:46 +00:00
This commit is contained in:
Eric Johnson 2024-09-23 10:21:03 -04:00 committed by GitHub
commit 02e314ce9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,11 @@
if [[ "$OSTYPE" == linux* ]]; then
local _sublime_linux_paths
if [[ "$(uname -r)" = *icrosoft* ]]; then
_sublime_linux_paths=(
"$(wslpath -u 'C:\Program Files\Sublime Merge\sublime_merge.exe' 2>/dev/null)"
)
else
_sublime_linux_paths=(
"$HOME/bin/sublime_merge"
"/opt/sublime_merge/sublime_merge"
@ -13,6 +18,7 @@
"/usr/local/bin/smerge"
"/usr/bin/smerge"
)
fi
for _sublime_merge_path in $_sublime_linux_paths; do
if [[ -a $_sublime_merge_path ]]; then
sm_run() { $_sublime_merge_path "$@" >/dev/null 2>&1 &| }