fix the sysmem messages for non-Linux OSes

Windows was incorrect, mac and termux were unquoted.
This commit is contained in:
amtoine 2023-08-19 09:39:21 +02:00
parent 821e50c4b0
commit 6865ec9a54
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -165,15 +165,15 @@ export def clip [
if $charpage != null {
chcp $charpage
}
check-clipboard clip.exe --system $"('xorg' | pretty-command) on linux"
check-clipboard clip.exe --system "Windows"
$input | clip.exe
},
"macos" => {
check-clipboard pbcopy --system macOS
check-clipboard pbcopy --system "MacOS"
$input | pbcopy
},
"android" => {
check-clipboard termux-clipboard-set --system Termux
check-clipboard termux-clipboard-set --system "Termux"
$input | termux-clipboard-set
},
_ => {
@ -293,4 +293,4 @@ Startup Time: ($nu.startup-time)
# Return the current working directory
export def pwd [] {
$env.PWD
}
}