From ff1ee17d763233cd91654f585f2c7f504d4af37a Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Mon, 11 Jul 2022 11:03:43 +0200 Subject: [PATCH] $@ --- zsh/.config/zsh/functions.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zsh/.config/zsh/functions.zsh b/zsh/.config/zsh/functions.zsh index 6111c87..cdecb9e 100644 --- a/zsh/.config/zsh/functions.zsh +++ b/zsh/.config/zsh/functions.zsh @@ -16,6 +16,7 @@ bt() { doasedit() { (( ${+commands[doas]} )) || return 2 + [[ $# -eq 0 ]] || return 1 doas -L doas -u root sh -c \ @@ -48,11 +49,11 @@ get_ip() { http() { (( ${+commands[python]} )) || return 2 eval "python -m http.server 8080 --bind 127.0.0.1 \ - $( [[ $# -gt 0 ]] && echo "--directory $1" )" + $( [[ $# -gt 0 ]] && echo "--directory $1" ) $@" } open() { (( ${+commands[xdg-open]} )) || return 2 - nohup xdg-open "$1" &> /dev/null & disown + nohup xdg-open "$@" &> /dev/null & disown }