My build of nnn with minor changes
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

18 rindas
431 B

  1. #!/usr/bin/env sh
  2. # Description: Fuzzy find a file in directory subtree with fzy
  3. # Opens in $VISUAL or $EDITOR if text
  4. # Opens other type of files with xdg-open
  5. #
  6. # Shell: POSIX compliant
  7. # Author: Arun Prakash Jana
  8. entry="$(find . -type f 2>/dev/null | fzy)"
  9. case "$(file -biL "$entry")" in
  10. *text*)
  11. "${VISUAL:-$EDITOR}" "$entry" ;;
  12. *)
  13. xdg-open "$entry" >/dev/null 2>&1 ;;
  14. esac