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 }