Skip to content

Instantly share code, notes, and snippets.

@sigma
Created July 25, 2010 09:04
Show Gist options
  • Save sigma/489434 to your computer and use it in GitHub Desktop.
Save sigma/489434 to your computer and use it in GitHub Desktop.
get_scratch.sh
#!/bin/zsh
scratchpad="scratch$1"
if tmux has -t $scratchpad; then
tmux attach -t $scratchpad
else
tmux new -s $scratchpad
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment