Last active
February 12, 2016 23:59
-
-
Save dschep/2759e277dc877a89852d to your computer and use it in GitHub Desktop.
A shortcut for loading different GNU screen profiles.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.screenrc | |
screen vim | |
split -v | |
focus right | |
screen | |
split | |
focus down | |
screen | |
focus left |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If
scrn
is in$PATH
and.scrn_dev
is at~/.scrn/dev
you can load the dev profile by calling