My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

18 lignes
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