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 |
- #!/bin/sh
- #
- if [ -z "$TMUX" ]; then
- if tmux attach -t $(tmux ls | grep -v attached | head -1 | cut -f1 -d:) || tmux; then
- exit
- else
- echo "Error while exicuting tmux. Check if tmux is installed"
- fi
- fi
|