diff options
-rwxr-xr-x | edit | 2 | ||||
-rwxr-xr-x | v | 9 |
2 files changed, 11 insertions, 0 deletions
@@ -0,0 +1,2 @@ +#!/usr/bin/env bash +exec vim "$@" @@ -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 |