Skip to content

Instantly share code, notes, and snippets.

@putermancer
Created September 22, 2010 16:04
Show Gist options
  • Select an option

  • Save putermancer/591975 to your computer and use it in GitHub Desktop.

Select an option

Save putermancer/591975 to your computer and use it in GitHub Desktop.

Revisions

  1. putermancer revised this gist Sep 22, 2010. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions devscreen.sh
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,10 @@
    # 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
  2. putermancer created this gist Sep 22, 2010.
    11 changes: 11 additions & 0 deletions devscreen.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/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.
    if screen -ls | grep main > /dev/null
    then
    screen -x
    else
    cd $HOME/Development && screen -S main
    fi