diff options
| author | EuAndreh <eu@euandre.org> | 2021-01-13 20:18:33 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2021-01-13 20:18:33 -0300 |
| commit | 2e61364fa95529ab60d2ddd853d345abc9129946 (patch) | |
| tree | ca82c9769edb23dd9b967026c0635620ac2f0fca /bash/util.sh | |
| parent | Remove scripts/ad-hoc/clear alias (diff) | |
| download | dotfiles-2e61364fa95529ab60d2ddd853d345abc9129946.tar.gz dotfiles-2e61364fa95529ab60d2ddd853d345abc9129946.tar.xz | |
util.sh: Remove ad-hoc fvi function
Diffstat (limited to 'bash/util.sh')
| -rw-r--r-- | bash/util.sh | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/bash/util.sh b/bash/util.sh index de10bd31..965b690a 100644 --- a/bash/util.sh +++ b/bash/util.sh @@ -26,17 +26,3 @@ genpassword() { length="${1-99}" tr -cd '[:alnum:]' < /dev/random | fold "-w$length" | head -n1 ||: } - -mkdir -p ~/.local/share/fzf/ -touch ~/.local/share/fzf/fvi -fvi() { - if [ -n "$(__git_ps1 '')" ]; then - f="$(git ls-files | fzf --query "$1" --preview 'cat {}' --history="$HOME/.local/share/fzf/fvi")" - else - f="$(fzf --query "$1" --preview 'cat {}' --history="$HOME/.local/share/fzf/fvi")" - fi - if [ -n "$f" ]; then - history -s vi "$f" - vi "$f" - fi -} |
