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.

преди 5 години
1234567891011121314151617
  1. #!/usr/bin/env sh
  2. # Description: Navigate to directory using autojump
  3. #
  4. # Requires: autojump - https://github.com/wting/autojump
  5. #
  6. # Shell: POSIX compliant
  7. # Author: Marty Buchaus
  8. if which autojump >/dev/null 2>&1; then
  9. printf "jump to: "
  10. read -r dir
  11. odir="$(autojump "$dir")"
  12. printf "%s" "0$odir" > "$NNN_PIPE"
  13. else
  14. exit 1
  15. fi