diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-10-05 16:33:10 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-10-05 16:33:10 +0100 |
commit | 9fff448654308b1e1b3d1129c0255544f56c25cc (patch) | |
tree | eda78717611d7a6b2204ba8e9f73af90e69ae90b /fish/functions/tjclip.fish |
initial
Diffstat (limited to '')
-rw-r--r-- | fish/functions/tjclip.fish | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fish/functions/tjclip.fish b/fish/functions/tjclip.fish new file mode 100644 index 0000000..959c87a --- /dev/null +++ b/fish/functions/tjclip.fish @@ -0,0 +1,7 @@ +function tjclip --description 'Log contents of the clipboard to the daily journal, via the _tj script' --argument message + if test -n "$message" + echo "$message: $(xclip -o -clipboard clipboard)." | _tj + else + echo "Please give me your message, wrapped in quotes." + end +end |