From 2ac63910f637bc84cbf2392a1505f53b0a44df26 Mon Sep 17 00:00:00 2001 From: ShinyZero0 <105050391+ShinyZero0@users.noreply.github.com> Date: Fri, 2 Jun 2023 00:26:22 +0300 Subject: [PATCH] stdlib: add termux clipboard suport for clip (#9334) # Description Added `termux-clipboard-set` to `std clip` --- crates/nu-std/std/mod.nu | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/nu-std/std/mod.nu b/crates/nu-std/std/mod.nu index 7b13a8adb0..40106a8507 100644 --- a/crates/nu-std/std/mod.nu +++ b/crates/nu-std/std/mod.nu @@ -106,6 +106,7 @@ def check-clipboard [ # - xclip on linux x11 # - wl-copy on linux wayland # - clip.exe on windows +# - termux-api on termux # # Examples: # put a simple string to the clipboard, will be stripped to remove ANSI sequences @@ -167,6 +168,10 @@ export def clip [ check-clipboard pbcopy --system macOS $input | pbcopy }, + "android" => { + check-clipboard termux-clipboard-set --system Termux + $input | termux-clipboard-set + }, _ => { error make --unspanned { msg: $"(ansi red)unknown_operating_system(ansi reset):