If I want to run a command, say ranger, in a new termite terminal, I can use

termite -e "ranger"

and, if I want to run ranger inside a bash sub-instance, I can use

bash --init-file <(echo ranger)

so what is it that I am doing wrong when I run

termite -e "bash --init-file <(echo ranger)"

My hope is to be able to open a terminal running ranger so that quitting ranger takes me back to bash.

  • I don't have termite around to check, but does termite -e 'ranger; bash' work?
    – muru
    Commented Sep 12, 2018 at 4:15
  • Unfortunately not.
    – Nonnus
    Commented Sep 12, 2018 at 14:27
  • try either termite -e sh -c 'ranger; bash' or termite -x sh -c 'ranger; bash' (the -e flag should work in xterm-like terminal emulators; the -x in gnome-terminal & such, which had badly implemented the -e switch)
    – user313992
    Commented Nov 5, 2018 at 23:13

1 Answer 1


I don't have termite either, but with Terminator, using ranger; exec bash works. But then, so does ranger; bash so it's not a good test. Anyhow, it's worth a try:

termite -e 'ranger; exec bash'

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .