3 # Based on ranger launcher.
5 # Usage: ". ./rover.sh [/path/to/rover]"
7 tempfile
="$(mktemp 2> /dev/null || printf "/tmp
/rover-cwd.
%s
" $$)"
14 "$rover" --save-cwd "$tempfile" "$@"
16 test -f "$tempfile" &&
17 if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
18 cd "$(cat "$tempfile")"