blob: 4a417fe8aaf2c2a86209f1e698ded6b699d79ea1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
#----------------------------------------------------
# Version: 0.1.2
# Author: Florian "Bluewind" Pritz <flo@xssn.at>
#
# Licensed under WTFPL v2
# (see COPYING for full license text)
#
#----------------------------------------------------
# start screen with a combined config file
#----------------------------------------------------
# .screerc and .screenrc-<anything>
# Usage: screen.sh <anything>
#----------------------------------------------------
tempfile=`mktemp`
screenname="$1"
shift
cat ~/.screenrc >> $tempfile
cat ~/.screenrc-$screenname>> $tempfile
screen -S "screen-sh-$screenname" -c "${tempfile}" $@
|