[zsh] add open command for Linux

This commit is contained in:
Dmytro Meleshko 2019-08-28 10:46:52 +03:00
parent 88a549bea3
commit 71f4f96c3c
1 changed files with 4 additions and 0 deletions

View File

@ -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