Last active
February 20, 2016 01:43
-
-
Save cig0/70a892b45fdf488b949f to your computer and use it in GitHub Desktop.
.tmux.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.bash_profile: executed by the command interpreter for login shells. | |
| # see /usr/share/doc/bash/examples/startup-files for examples. | |
| # the files are located in the bash-doc package. | |
| # if running bash | |
| if [ -n "$BASH_VERSION" ]; then | |
| # include .bashrc if it exists | |
| if [ -f "$HOME/.bashrc" ]; then | |
| . "$HOME/.bashrc" | |
| fi | |
| fi | |
| # set PATH so it includes user's private bin if it exists | |
| if [ -d "$HOME/bin" ] ; then | |
| PATH="$HOME/bin:$PATH" | |
| fi | |
| # Set xterm to 256 colors | |
| if [ -n "$DISPLAY" -a "$TERM" == "xterm" ]; then | |
| export TERM=xterm-256color | |
| fi | |
| # LS_COLORS | |
| eval $(dircolors -b ~/.dircolors) | |
| # tmux | |
| if which tmux 2>&1 >/dev/null; then | |
| # if session is started then attach to it, if not start a new one | |
| test -z ${TMUX} && (tmux -2 attach-session || tmux -2 new-session) | |
| fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment