My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 4 години
преди 4 години
преди 4 години
преди 4 години
преди 4 години
1234567891011121314151617181920
  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