[bugfix] open url failed when url contains ampersand on wsl

This commit is contained in:
Klesh Wong 2021-06-20 10:27:26 +08:00
parent 530c743a4b
commit 3ffe18906a

4
bin/bm
View File

@ -8,7 +8,9 @@ else
set BOOKMARK_SEARCHER fzf --layout reverse set BOOKMARK_SEARCHER fzf --layout reverse
end end
if string match -iq '*microsoft*' (uname -r) if string match -iq '*microsoft*' (uname -r)
alias xdg-open='powershell.exe -noprofile start-process' function xdg-open
powershell.exe -noprofile "start-process '$argv'"
end
alias disown='echo done' # no need to disown on WSL alias disown='echo done' # no need to disown on WSL
end end