aboutsummaryrefslogtreecommitdiff
path: root/bash/util.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-12 00:33:49 -0300
committerEuAndreh <eu@euandre.org>2021-01-12 00:33:49 -0300
commitc69a6ef38c3a6e1b7655f654b9f1014a203c4c24 (patch)
tree36ee51bc72e3355b03b810679a6f530fb80f60ce /bash/util.sh
parentUse scratch.txt over scratch.org (diff)
downloaddotfiles-c69a6ef38c3a6e1b7655f654b9f1014a203c4c24.tar.gz
dotfiles-c69a6ef38c3a6e1b7655f654b9f1014a203c4c24.tar.xz
utils.sh: rename ji -> fvi, add cat preview
Diffstat (limited to 'bash/util.sh')
-rw-r--r--bash/util.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/util.sh b/bash/util.sh
index c040e863..8777e7b4 100644
--- a/bash/util.sh
+++ b/bash/util.sh
@@ -42,8 +42,8 @@ gen-password() {
tr -cd '[:alnum:]' < /dev/random | fold "-w$length" | head -n1 ||:
}
-ji() {
- f="$(fzf)"
+fvi() {
+ f="$(fzf --preview 'cat {}')"
if [ -n "$f" ]; then
history -s vi "$f"
vi "$f"