Skip to content

Instantly share code, notes, and snippets.

@carlessanagustin
Created April 13, 2021 09:14
Show Gist options
  • Select an option

  • Save carlessanagustin/fa735dd5e9fece8f19a8ff2bbca7ac8f to your computer and use it in GitHub Desktop.

Select an option

Save carlessanagustin/fa735dd5e9fece8f19a8ff2bbca7ac8f to your computer and use it in GitHub Desktop.

Revisions

  1. carlessanagustin created this gist Apr 13, 2021.
    5 changes: 5 additions & 0 deletions tmux.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    cat << 'EOF' > ~/.bash_profile
    if [ -z "$TMUX" ]; then
    tmux attach -t default || tmux new -s default
    fi
    EOF