From 230bc2bf388b56e6da39668c65d242ef1bc1c8d6 Mon Sep 17 00:00:00 2001 From: Ting Zhou Date: Tue, 3 May 2022 19:03:24 -0700 Subject: add pbcopy to support macos file ops (#166) --- src/commands/file_ops.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/file_ops.rs b/src/commands/file_ops.rs index e0976cf..9e9498d 100644 --- a/src/commands/file_ops.rs +++ b/src/commands/file_ops.rs @@ -120,6 +120,10 @@ fn copy_string_to_buffer(string: String) -> JoshutoResult { "xsel", format!("printf '%s' '{}' | {} -ib 2> /dev/null", string, "xsel"), ), + ( + "pbcopy", + format!("printf '%s' '{}' | {} 2> /dev/null", string, "pbcopy"), + ), ( "xclip", format!( -- cgit v1.2.3