My build of nnn with minor changes
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

18 wiersze
417 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 | fzy)"
  9. case "$(file -biL "$entry")" in
  10. *text*)
  11. "${VISUAL:-$EDITOR}" "$entry" ;;
  12. *)
  13. xdg-open "$entry" >/dev/null 2>&1 ;;
  14. esac