Skip to content

Instantly share code, notes, and snippets.

@nviennot
Created May 31, 2012 10:24
Show Gist options
  • Save nviennot/2842474 to your computer and use it in GitHub Desktop.
Save nviennot/2842474 to your computer and use it in GitHub Desktop.
tmux login script to always have tmux loaded
#!/bin/bash
if [[ -t 0 && -t 1 && -t 2 && $# == 0 ]]; then
exec tmux -q -2 set -g default-shell /bin/zsh \; new-session
else
exec /bin/bash "$@"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment