kamiyaa / joshuto

ranger-like terminal file manager written in Rust
https://crates.io/crates/joshuto
GNU Lesser General Public License v3.0
3.46k stars 154 forks source link

quit to shell #239

Closed alvaro17f closed 1 year ago

alvaro17f commented 1 year ago

Hi, I've noticed that when you invoke Joshuto like this:

alacritty -e joshuto

the window gets closed after quit.

It should keep the terminal window open so whether you decide to cd on quit (quit --output-current-directory) or simply quit, you get your shell again.

alacritty --hold -e joshuto doesn't seems to work as expected.

Thanks in advance... I really love this project and use joshuto every day.

pantosaur commented 1 year ago

of course alacritty --hold -e joshuto doesn't do what you expect, because it is not spawning a shell at all. By default your terminal will spawn you default shell but -e joshuto overrides that. It is not really in the scope of a terminal program, i.e. joshuto to solve this problem, but can do this to get what you probably want:

alacritty -e bash --rcfile <(echo '. ~/.bashrc; joshuto')

alvaro17f commented 1 year ago

@pantosaur thank you very much. That's exactly what I was looking for.