From 992f42fb4464f498ac4bad1d97c1d91d99e92a76 Mon Sep 17 00:00:00 2001 From: samedamci Date: Mon, 11 May 2020 20:52:34 +0200 Subject: [PATCH] Add 'f' script --- .local/bin/scripts/f | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .local/bin/scripts/f diff --git a/.local/bin/scripts/f b/.local/bin/scripts/f new file mode 100755 index 0000000..4a50d15 --- /dev/null +++ b/.local/bin/scripts/f @@ -0,0 +1,6 @@ +#!/bin/sh + +# Search for files in local directory and edit selected in default editor. + +find . -type f | fzf --preview 'cat {}' --height 25 --layout reverse | \ + xargs -r "$EDITOR"