My build of nnn with minor changes
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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