Skip to content

Instantly share code, notes, and snippets.

@putermancer
Created September 22, 2010 16:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save putermancer/591975 to your computer and use it in GitHub Desktop.
Save putermancer/591975 to your computer and use it in GitHub Desktop.
development screen session shortcut
#!/bin/bash
# Simple way to create a main development screen in the
# right base directory, or re-attach to the one that is
# already setup.
# I create a symlink or alias 's' so I am always one keystroke
# away from my dev screen.
if screen -ls | grep main > /dev/null
then
screen -x
else
cd $HOME/Development && screen -S main
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment