Browse Source

utility, helper: add aliases to use with termux terminal emulator (android) (#1859)

master
Austin Sloane 4 years ago committed by GitHub
parent
commit
ee1d011534
  1. 5
      modules/helper/init.zsh
  2. 4
      modules/utility/init.zsh

5
modules/helper/init.zsh

@ -49,3 +49,8 @@ function is-bsd {
function is-cygwin { function is-cygwin {
[[ "$OSTYPE" == cygwin* ]] [[ "$OSTYPE" == cygwin* ]]
} }
# is true on termux (Android)
function is-termux {
[[ "$OSTYPE" == linux-android ]]
}

4
modules/utility/init.zsh

@ -140,6 +140,10 @@ elif is-cygwin; then
alias o='cygstart' alias o='cygstart'
alias pbcopy='tee > /dev/clipboard' alias pbcopy='tee > /dev/clipboard'
alias pbpaste='cat /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 else
alias o='xdg-open' alias o='xdg-open'

Loading…
Cancel
Save