diff --git a/README.md b/README.md index cfe5a79..74e0bf3 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ Supports: - macOS - Cygwin - Windows Subsystem for Linux (WSL) +- Termux Installing ---------- @@ -147,6 +148,14 @@ $ sudo yum install xsel # or xclip - `clip.exe` is shipped with Windows Subsystem for Linux. +### Termux + +Install [Termux:API](https://github.com/termux/termux-api) plugin and +`termux-api` package. +``` sh +$ pkg install termux-api +``` + Configuration ------------- diff --git a/scripts/helpers.sh b/scripts/helpers.sh index 66beeec..fb74ddd 100644 --- a/scripts/helpers.sh +++ b/scripts/helpers.sh @@ -168,6 +168,8 @@ clipboard_copy_command() { echo "xclip -selection $xclip_selection" elif command_exists "putclip"; then # cygwin clipboard command echo "putclip" + elif command_exists "termux-clipboard-set"; then # Termux clipboard command + echo "termux-clipboard-set" elif [ -n "$(custom_copy_command)" ]; then custom_copy_command fi