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?

Seth
  • 57,282
  • 43
  • 144
  • 200
Luke_0
  • 187
  • 1
  • 12

1 Answers1

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

glenn jackman
  • 17,625
  • 2
  • 37
  • 60