]> Sergey Matveev's repositories - path-extractor.git/commitdiff
Update readme for binding with bash
authorEdgar HIPP <hipp.edg@gmail.com>
Sun, 5 Jul 2015 19:41:45 +0000 (21:41 +0200)
committerEdgar HIPP <hipp.edg@gmail.com>
Sun, 5 Jul 2015 19:41:45 +0000 (21:41 +0200)
README.md

index 4cdfd759ccf68d79f88949c4c0e8f6b91395e244..4a5ef4943ef9942dfa5a3302cec9f004ca95e3b9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ For example, using `zsh` , I have as an alias:
 
 With `bash`:
 
-    bind '"PP": "| pe | fzf | read filename; [ ! -z $filename ] && vim $filename"'
+    bind '"PP": "| pe | uniq | fzf | while read filename; do [ ! -z $filename ] && </dev/tty vim $filename; done\n'
 
 So that If I run
 
@@ -50,7 +50,7 @@ With zsh:
 
 With bash:
 
-    bind '"CC": "| pe | fzf | read filename; [ ! -z $filename ] && echo -n $filename | xclip -selection c"'
+    bind '"CC": "| pe | fzf | read filename; [ ! -z $filename ] && echo -n $filename | xclip -selection c\n"'
 
 # Installation