diff options
| author | EuAndreh <eu@euandre.org> | 2021-01-12 00:33:49 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2021-01-12 00:33:49 -0300 |
| commit | c69a6ef38c3a6e1b7655f654b9f1014a203c4c24 (patch) | |
| tree | 36ee51bc72e3355b03b810679a6f530fb80f60ce /bash/util.sh | |
| parent | Use scratch.txt over scratch.org (diff) | |
| download | dotfiles-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.sh | 4 |
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" |
