From f971182e3ac3b8296dfd0bae0b42bbbf0a0c93bf Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Wed, 28 Aug 2019 10:51:30 +0300 Subject: [PATCH] [zsh] extend open to android --- zsh/functions.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 977ca4f..2d70658 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -35,6 +35,8 @@ welcome() { python "$ZSH_DOTFILES/welcome/main.py" } -if is_linux && command_exists xdg-open; then +if is_android; then + alias open='termux-open' +elif is_linux && command_exists xdg-open; then open() { nohup xdg-open "$@" &> /dev/null; } fi