summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Zhao <jeff.no.zhao@gmail.com>2022-05-04 16:34:03 -0400
committerJeff Zhao <jeff.no.zhao@gmail.com>2022-05-04 16:34:03 -0400
commit8fef2b90b7ea4ea5640ad25880815d965126b0c9 (patch)
tree8f3c0575e94252ddce3ca78af294aae6a0c3afd0
parent19be5254c3f5df03f3d6c68e13c73c88b40156fa (diff)
parent230bc2bf388b56e6da39668c65d242ef1bc1c8d6 (diff)
Merge branch 'main' into dev
-rw-r--r--src/commands/file_ops.rs4
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",