My build of nnn with minor changes
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

21 lines
428 B

  1. #!/usr/bin/env sh
  2. # Description: Navigate to directory using autojump
  3. #
  4. # Requires: autojump - https://github.com/wting/autojump
  5. #
  6. # Note: autojump STORES NAVIGATION PATTERNS
  7. #
  8. # Shell: POSIX compliant
  9. # Author: Marty Buchaus
  10. if which autojump >/dev/null 2>&1; then
  11. printf "jump to: "
  12. read -r dir
  13. odir="$(autojump "$dir")"
  14. printf "%s" "0$odir" > "$NNN_PIPE"
  15. else
  16. printf "autojump missing"
  17. read -r _
  18. fi