From eff60844c7e589b81fe4c83901f35fee71aefdc6 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 14 Nov 2020 16:11:13 -0500 Subject: add v and edit --- v | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 v (limited to 'v') diff --git a/v b/v new file mode 100755 index 0000000..b5b54c1 --- /dev/null +++ b/v @@ -0,0 +1,9 @@ +if [[ -d $1 ]] +then + rg --files $1 | fzf | xargs edit +elif [[ -f $1 ]] +then + edit $1 +else + rg --files . | fzf | xargs edit +fi -- cgit v1.2.3