Commit 51d4b6f2 authored by Pablo COVES's avatar Pablo COVES

Readme 💄

parent a57ba14a
......@@ -32,8 +32,7 @@ No fancy stuff in this [script](https://gitlab.com/pcoves/tmux/snippets/1687883/
This boilerplate `bashrc` code will start a tmux session on terminal opening if needed or join an existing one otherwise.
if [[ -n "$DISPLAY" && $TMUX = "" ]]; then
tmux ls | grep -vq attached && TMUXARG="attach-session -d"
exec eval "tmux -2 $TMUXARG"
fi
if [[ -n "$DISPLAY" && $TMUX = "" ]]; then
tmux ls | grep -vq attached && TMUXARG="attach-session -d"
exec eval "tmux -2 $TMUXARG"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment