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.
 
 
 
 

12 rivejä
264 B

  1. # tmux/.profile.d/20-functions-tmux.sh
  2. t()
  3. {
  4. if [ -z "$1" ]; then
  5. echo "Supply a tmux session name to connect to/create"
  6. else
  7. tmux has-session -t "$1" 2>/dev/null
  8. [ $? != 0 ] && tmux new-session -d -s "$1"
  9. tmux attach-session -d -t "$1"
  10. fi
  11. }