mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 12:48:01 +00:00
utility, helper: add aliases to use with termux terminal emulator (android) (#1859)
This commit is contained in:
parent
c21295b27f
commit
4e7ab4b8b7
@ -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 ]]
|
||||||
|
}
|
||||||
|
@ -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…
Reference in New Issue
Block a user