diff --git a/modules/helper/init.zsh b/modules/helper/init.zsh index 6e83f89..0553556 100644 --- a/modules/helper/init.zsh +++ b/modules/helper/init.zsh @@ -49,3 +49,8 @@ function is-bsd { function is-cygwin { [[ "$OSTYPE" == cygwin* ]] } + +# is true on termux (Android) +function is-termux { + [[ "$OSTYPE" == linux-android ]] +} diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index caa0ec8..7bb7532 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -140,6 +140,10 @@ elif is-cygwin; then alias o='cygstart' alias pbcopy='tee > /dev/clipboard' alias pbpaste='cat /dev/clipboard' +elif is-termux; then + alias o='termux-open' + alias pbcopy='termux-clipboard-set' + alias pbpaste='termux-clipboard-get' else alias o='xdg-open'