I'm on Linux, but this should be the same on Mac. Not sure what you mean by bash directory. On .config/ranger/rifle.conf (this is what tells ranger how to open files) I have:
mime ^text, label editor = gvim -- "$@" mime ^text, label pager = "$PAGER" -- "$@" !mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@" !mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$PAGER" -- "$@" You probably need to adjust these lines in your rifle.conf file. Setting EDITOR variable in my shell (e.g., in .bash_profile) did it for me and should work in Mac too. Check your EDITOR variable like the following: [psychopad:~/.config/ranger]% echo $EDITOR vim On Fri, Jan 23, 2015 at 4:16 PM, Bryan Arguello <[email protected]> wrote: > Hi, > > I am trying to get this to work on my mac. I'm running Maverick and > installed ranger through mac port. I have no bash directory, so I tried > creating a bash directory and added config.bash to that directory. However, > Nano is still the text editor. Do you have any advice? > > Thanks, > > -Bryan
