mirror of
https://github.com/nushell/nushell
synced 2024-12-26 04:53:09 +00:00
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
1 changed files with 5 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue