Hacker News new | ask | show | jobs
by j88439h84 2395 days ago
I don't observe a difference between `ranger` and `. ranger` in zsh. What am I supposed to notice?
1 comments

With `. ranger`, if you change directory and then exit, the shell's working directory changes to where you left off in Ranger.

  $ pwd
  /home/grandpa
  $ ranger
  [ ... change directory ... ]
  $ pwd
  /home/grandpa
vs

  $ . ranger
  [ ... change directory ... ]
  $ pwd
  /home/grandpa/src
Got it. Thanks.