7

I've recently changed my default shell to fish (from bash). I had tmux set up to run automatically whenever I opened the console with bash, but I'm not sure how to set it up with fish.

I tried putting

[[ $TERM != "screen" ]] && exec tmux

in fish.config, but that didn't work. How do I set tmux to automatically run in fish?

8

Change

[[ $TERM != "screen" ]] && exec tmux

to

test $TERM != "screen"; and exec tmux

http://fishshell.com/docs/2.1/commands.html#test
http://fishshell.com/docs/2.1/commands.html#and

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.