You are not logged in.

#1 2021-12-27 22:07:57

Hoswoo
Member
From: United States
Registered: 2021-11-12
Posts: 24

[SOLVED] Ranger does not open in current directory when pressing S

Hi everyone, hope you all had a good time for the holidays.

I've been using the ranger file manager for quite some time and love it. However, as the title describes, ranger does not open a terminal in the current working directory when i press shift+s.

What puzzles me is that I have a laptop and desktop, both with Arch installed and this functionality seems to be working properly on my desktop, but not on my laptop. I don't remember if I made any changes to my config to fix this, but I'm sure the fix is something silly that  I completely forgot about.

Last edited by Hoswoo (2021-12-28 00:43:33)

Offline

#2 2021-12-27 23:16:35

jonno2002
Member
Registered: 2016-11-21
Posts: 889

Re: [SOLVED] Ranger does not open in current directory when pressing S

the shortcut is "S" not "shift+s" so if your caps lock is on it will be a "s" which brings up the ":shell" command.

only other thing i can think of is if you somehow changed the $SHELL environment variable, check with:

echo $SHELL

if not then you must have altered the rc.conf, this is the default line:

map S shell $SHELL

Offline

#3 2021-12-27 23:53:08

Hoswoo
Member
From: United States
Registered: 2021-11-12
Posts: 24

Re: [SOLVED] Ranger does not open in current directory when pressing S

Hmm, nope. Nothing unusual there. For

echo $SHELL 

my output is

 /bin/bash 

and my rc.conf has the line

 map S shell $SHELL 

EDIT: Also, the terminal does open up like it's supposed to. However, it always opens up in the ~/ directory. Not the directory i'm currently in.

Last edited by Hoswoo (2021-12-27 23:57:15)

Offline

#4 2021-12-28 00:24:32

jonno2002
Member
Registered: 2016-11-21
Posts: 889

Re: [SOLVED] Ranger does not open in current directory when pressing S

check your .bashrc then, maybe somthing in there to make bash open in the "~" directory ?

Offline

#5 2021-12-28 00:42:58

Hoswoo
Member
From: United States
Registered: 2021-11-12
Posts: 24

Re: [SOLVED] Ranger does not open in current directory when pressing S

Oh my goodness! Haha, I knew it was something silly! I had cd ~/  in my .bashrc.

Offline

Board footer

Powered by FluxBB