diff options
author | Ting Zhou <ztlevi.work@gmail.com> | 2022-05-03 19:03:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 22:03:24 -0400 |
commit | 230bc2bf388b56e6da39668c65d242ef1bc1c8d6 (patch) | |
tree | c8a688536134803f206f636ac0682d60915acd27 | |
parent | 8255d873b6dc12917b294e3653bf4942f4b5e1ec (diff) |
add pbcopy to support macos file ops (#166)
-rw-r--r-- | src/commands/file_ops.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ -121,6 +121,10 @@ fn copy_string_to_buffer(string: String) -> JoshutoResult { format!("printf '%s' '{}' | {} -ib 2> /dev/null", string, "xsel"), ), ( + "pbcopy", + format!("printf '%s' '{}' | {} 2> /dev/null", string, "pbcopy"), + ), + ( "xclip", format!( "printf '%s' '{}' | {} -selection clipboard 2> /dev/null", |