From d9e948ed53a82e6fdc7a1947a4ea5c91961a879f Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Mon, 8 Apr 2024 16:38:54 +0100 Subject: [PATCH] ofd: open the last argument passed --- lib/functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.zsh b/lib/functions.zsh index f5c671f9c..83ea21a43 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -37,7 +37,7 @@ function open_command() { return fi - ${=open_cmd} "$@" &>/dev/null + ${=open_cmd} "${@[-1]}" &>/dev/null } # take functions