Sfoglia il codice sorgente

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

Alois Mahdal 5 anni fa
parent
commit
6c641c3b83
1 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. 14
    0
      dotfiles/bash/main.bashrc

+ 14
- 0
dotfiles/bash/main.bashrc Vedi 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