Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

tmux default config #217

Open
ksimuk opened this issue Oct 8, 2014 · 3 comments
Open

tmux default config #217

ksimuk opened this issue Oct 8, 2014 · 3 comments

Comments

@ksimuk
Copy link
Member

ksimuk commented Oct 8, 2014

create default tmux config and start tmux session automatically if tmux installed

@jondkinney
Copy link

You should be able to have tmux auto started for you by adding the following to your ~/.bash_profile or, in my case, ~/.zshrc (you should really check out zsh if you haven't yet!).

case $- in *i*)
  if [ -z "$TMUX" ]; then
    exec tmux;
  fi
esac

If you add a tmux config file at ~/.tmux.config, then tmux will load that when it launches. Here's an example one that I use - https://gist.github.com/jondkinney/2040114#file-tmux-conf

If you want to load specific layouts within multiple windows, then I'd recommend checking out the tmuxinator ruby gem here: https://github.com/tmuxinator/tmuxinator. If you get going with tmuxinator then you'd need to change the command in the above code snippet from exec tmux; to exec tmuxinator start project_name_here;.

PS to get zsh working on codio - see here http://forum.codio.com/t/zsh-terminal-shell/780/4 and here http://www.fluidbyte.net/quickly-setup-oh-my-zsh-on-codio/

Cheers!

@fmay
Copy link

fmay commented Oct 8, 2014

Thanks @jondkinney you've saved me some painful research. And thanks for the zsh links. Been meaning to add something to the Docs on that.

@jondkinney
Copy link

No prob @fmay! ...now can you add my vim box part?!? 👅 JK... but seriously, if you could that'd be awesome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants