Skip to content

Instantly share code, notes, and snippets.

@dschep
Last active February 12, 2016 23:59
Show Gist options
  • Save dschep/2759e277dc877a89852d to your computer and use it in GitHub Desktop.
Save dschep/2759e277dc877a89852d to your computer and use it in GitHub Desktop.
A shortcut for loading different GNU screen profiles.
source ~/.screenrc
screen vim
split -v
focus right
screen
split
focus down
screen
focus left
#!/bin/bash
if [ ! -f "$HOME/.scrn/$1" ]; then
echo "No screen profile found at ~/.scrn/$1" 1>&2
exit 1
fi
screen -c "$HOME/.scrn/$1"
@dschep
Copy link
Author

dschep commented Feb 12, 2016

If scrn is in $PATH and .scrn_dev is at ~/.scrn/dev you can load the dev profile by calling

scrn dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment