[zsh] extend open to android

This commit is contained in:
Dmytro Meleshko 2019-08-28 10:51:30 +03:00
parent 71f4f96c3c
commit f971182e3a
1 changed files with 3 additions and 1 deletions

View File

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