Skip to content

Instantly share code, notes, and snippets.

@antoniocapelo
Created August 26, 2019 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoniocapelo/8fcf5fbc89f0ae2b66e19baf9ea4289b to your computer and use it in GitHub Desktop.
Save antoniocapelo/8fcf5fbc89f0ae2b66e19baf9ea4289b to your computer and use it in GitHub Desktop.
tmux dev session
#!/bin/sh
# place this under /usr/local/bin/tmux-dev
if [ -z "$1" ]
then
echo "No session name supplied"
exit 1
fi
tmux new-session -d -s $1
tmux rename-window server
tmux new-window -n code
tmux new-window -n git
tmux -2 attach-session -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment