forked from extern/nushell
stdlib: add termux clipboard suport for clip (#9334)
# Description Added `termux-clipboard-set` to `std clip`
This commit is contained in:
parent
55689ddb50
commit
2ac63910f6
@ -106,6 +106,7 @@ def check-clipboard [
|
|||||||
# - xclip on linux x11
|
# - xclip on linux x11
|
||||||
# - wl-copy on linux wayland
|
# - wl-copy on linux wayland
|
||||||
# - clip.exe on windows
|
# - clip.exe on windows
|
||||||
|
# - termux-api on termux
|
||||||
#
|
#
|
||||||
# Examples:
|
# Examples:
|
||||||
# put a simple string to the clipboard, will be stripped to remove ANSI sequences
|
# 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
|
check-clipboard pbcopy --system macOS
|
||||||
$input | pbcopy
|
$input | pbcopy
|
||||||
},
|
},
|
||||||
|
"android" => {
|
||||||
|
check-clipboard termux-clipboard-set --system Termux
|
||||||
|
$input | termux-clipboard-set
|
||||||
|
},
|
||||||
_ => {
|
_ => {
|
||||||
error make --unspanned {
|
error make --unspanned {
|
||||||
msg: $"(ansi red)unknown_operating_system(ansi reset):
|
msg: $"(ansi red)unknown_operating_system(ansi reset):
|
||||||
|
Loading…
Reference in New Issue
Block a user