Browse Source

Ask xvb() and xxvb() for quick ad-hoc Bash scriptlets

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

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

@@ -446,6 +446,20 @@ xvxx() {
446 446
     xop o | vipe | xop ii
447 447
 }
448 448
 
449
+xvb() {
450
+    #
451
+    # Edit text in primary clipboard and run it using bash
452
+    #
453
+    xop o | vipe | bash
454
+}
455
+
456
+xxvb() {
457
+    #
458
+    # Edit text in C-C clipboard and run it using bash
459
+    #
460
+    xop oo | vipe | bash
461
+}
462
+
449 463
 vxx() {
450 464
     #
451 465
     # Edit text on stdin and save it to C-C clipboard