From b20cd1429cf36c8555d7c7bc51bc1d53e4aa60e0 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek 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"