OS: Ubuntu 19.10.
I use Nautilus as file manager, and I modified ~/.bashrc
file to open the terminal in another directory rather than Home
. Let's call the target directory $(MYDIR)
. Now, the problem is that if I press Right Click -> Open in Terminal
in Nautilus, it opens the terminal in $(MYDIR)
, and that's because I think it executes the line of code I wrote in ~/.bashrc
.
Is there a way to fix this? I would like to open $(MYDIR)
with ctrl-alt-t
, but I would also like to open any directory from Nautilus when I do Open in Terminal
.
Can I have both?
I think I could do it by adding some code in ~/.bashrc
wrapping the line cd $(MYDIR)
but I don't know how to do it.
Any kind of help would be appreciated. Thank you
bash -c 'gnome-terminal --working-directory=$HOME/Music'
and binded it to keyboard shortcut.. i.stack.imgur.com/gajGu.jpg