Browse Source

Add interactive functions xl()/xxl() to show clipboards

Alois Mahdal 5 years ago
parent
commit
6c641c3b83
1 changed files with 14 additions and 0 deletions
  1. 14
    0
      dotfiles/bash/main.bashrc

+ 14
- 0
dotfiles/bash/main.bashrc View File

@@ -373,6 +373,20 @@ xood() {
373 373
     echo "$tmp/$name"
374 374
 }
375 375
 
376
+xl() {
377
+    #
378
+    # Show primary clipboard in less(1)
379
+    #
380
+    xop o | less -S
381
+}
382
+
383
+xxl() {
384
+    #
385
+    # Show C-C clipboard in less(1)
386
+    #
387
+    xop oo | less -S
388
+}
389
+
376 390
 xvxx() {
377 391
     #
378 392
     # Edit text in primary clipboard and save it to C-C clipboard