Folder to easyly add some customisation to bash
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910
  1. #!/bin/sh
  2. #
  3. if [ -z "$TMUX" ]; then
  4. if tmux attach -t $(tmux ls | grep -v attached | head -1 | cut -f1 -d:) || tmux; then
  5. exit
  6. else
  7. echo "Error while exicuting tmux. Check if tmux is installed"
  8. fi
  9. fi