From 3ffe18906af97f76ae3043939fe98e76fc2534a2 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Sun, 20 Jun 2021 10:27:26 +0800 Subject: [PATCH] [bugfix] open url failed when url contains ampersand on wsl --- bin/bm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/bm b/bin/bm index 07b6cec..b5a004a 100755 --- a/bin/bm +++ b/bin/bm @@ -8,7 +8,9 @@ else set BOOKMARK_SEARCHER fzf --layout reverse end 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 end