GNU Screen Profiles
If you're a regular GNU Screen user might find this hack for creating profiles useful.
Create a
.screendirectory in your home directory.mkdir "$HOME/.screen"Add the following to your
.bashrcor.bash_profile.sp() { if [[ -f "$HOME/.screen/$1" ]]; then screen -c "$HOME/.screen/$1" else echo "Unknown screen profile '$1'." fi }Create a file in the
~/.screendirectory with whatever profile name you would like to use (below is a sample profile namedtyrion).You should copy the first line into each profile as it loads your default GNU Screen settings.
source "$HOME/.screenrc" chdir "$HOME/src/tyrion/src" screen -t code 0 chdir "$HOME/src/tyrion" screen -t build 1 chdir "$HOME/src/tyrion/tests" screen -t tests 2 chdir "$HOME/src/tyrion"Reload your shell and test your profile (replace
tyrionwith whatever name you picked).[silas@example ~]$ sp tyrion
Licensing information is available on the about page, for additional questions or comments feel free to contact me.