citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

fuzz-edit-file (153B)


      1 #!/usr/bin/env bash
      2 set -e
      3 if [ "$1" = "--dir" ]; then
      4 	shift
      5 	cd "$1"
      6 	shift
      7 fi
      8 file=$(readlink -f $(rg --files | fuzzer "$@"))
      9 
     10 echo $EDITOR \"$file\"