diff options
-rwxr-xr-x | bin/e | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -75,5 +75,14 @@ if [ ! -t 0 ]; then $CMD "$F" cat "$F" >&3 else - $CMD "$@" + if [ $# -eq 0 ]; then + f="$(fzf --select-1 --exit-0 < "$XDG_DATA_HOME"/euandreh/e.list.txt)" + if [ -n "$f" ]; then + # FIXME + history -s e "$f" + sh -c "$CMD $f" + fi + else + $CMD "$@" + fi fi |