mirror of
https://github.com/nushell/nushell.git
synced 2025-01-11 16:58:41 +01:00
fix the sysmem messages for non-Linux OSes
Windows was incorrect, mac and termux were unquoted.
This commit is contained in:
parent
821e50c4b0
commit
6865ec9a54
@ -165,15 +165,15 @@ export def clip [
|
|||||||
if $charpage != null {
|
if $charpage != null {
|
||||||
chcp $charpage
|
chcp $charpage
|
||||||
}
|
}
|
||||||
check-clipboard clip.exe --system $"('xorg' | pretty-command) on linux"
|
check-clipboard clip.exe --system "Windows"
|
||||||
$input | clip.exe
|
$input | clip.exe
|
||||||
},
|
},
|
||||||
"macos" => {
|
"macos" => {
|
||||||
check-clipboard pbcopy --system macOS
|
check-clipboard pbcopy --system "MacOS"
|
||||||
$input | pbcopy
|
$input | pbcopy
|
||||||
},
|
},
|
||||||
"android" => {
|
"android" => {
|
||||||
check-clipboard termux-clipboard-set --system Termux
|
check-clipboard termux-clipboard-set --system "Termux"
|
||||||
$input | termux-clipboard-set
|
$input | termux-clipboard-set
|
||||||
},
|
},
|
||||||
_ => {
|
_ => {
|
||||||
@ -293,4 +293,4 @@ Startup Time: ($nu.startup-time)
|
|||||||
# Return the current working directory
|
# Return the current working directory
|
||||||
export def pwd [] {
|
export def pwd [] {
|
||||||
$env.PWD
|
$env.PWD
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user