Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
my dotfiles
VimL Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.battery
.gitconfig
.gitignore
.tmux.conf
.vimrc
README.rst
install.sh

README.rst

Install

To install or update run:

wget -qO- https://github.com/danclaudiupop/dotfiles/raw/master/install.sh | /bin/bash

To launch tmux by default add the following lines in bashrc:

if [[ "$TERM" != "screen-256color" ]]
  then
    tmux -2 attach-session -t "$USER" || tmux -2 new-session -s "$USER"
    exit
fi

Now to break down what exactly the above lines do:

  • if [ $TERM != "screen-256color" ] && [ $TERM != "screen" ];, this checks the $TERM environment variable to see if tmux is already running. This is to avoid an infinite loop of launching tmux.
  • tmux attach || tmux new; exit, this launches tmux and attaches to a running session or creates a new one.
  • exit, this closes the shell running underneath tmux when the last tmux window is closed.
Something went wrong with that request. Please try again.