From 2adab535a7862b451ffa8532efe22e564aff633a Mon Sep 17 00:00:00 2001 From: Afiq Date: Sat, 8 Jul 2023 11:47:27 +0800 Subject: [PATCH 1/2] feat: add support for Termux --- scripts/helpers.sh | 2 ++ 1 file changed, 2 insertions(+) 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 From 3a7e89dbffdb4a2afcf50899d2ceb3302970ada5 Mon Sep 17 00:00:00 2001 From: Afiq Date: Sat, 8 Jul 2023 13:28:42 +0800 Subject: [PATCH 2/2] docs(readme): add Termux to support list and requirements section --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -------------