1
0
Fork 0

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

pull/1861/head
Austin Sloane 4 years ago committed by GitHub
parent c21295b27f
commit 4e7ab4b8b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

Loading…
Cancel
Save