From 71f4f96c3c8e0bc3238907ca6df22d20cd267a48 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Wed, 28 Aug 2019 10:46:52 +0300 Subject: [PATCH] [zsh] add open command for Linux --- zsh/functions.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index a1319bc..977ca4f 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -34,3 +34,7 @@ lazy_load() { welcome() { python "$ZSH_DOTFILES/welcome/main.py" } + +if is_linux && command_exists xdg-open; then + open() { nohup xdg-open "$@" &> /dev/null; } +fi