summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <f-p@gmx.at>2009-05-27 15:06:33 +0200
committerFlorian Pritz <f-p@gmx.at>2009-05-27 15:06:33 +0200
commit5b7508b249db3624967da43c8fa575740babcecd (patch)
tree8b3de35cdccfd8fd843825e71bf23097b4938111
parent56006bd0622e33811c56f9470a35d563b7ad20b1 (diff)
downloadbin-5b7508b249db3624967da43c8fa575740babcecd.tar.gz
bin-5b7508b249db3624967da43c8fa575740babcecd.tar.xz
support arguments
-rwxr-xr-xscreen.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/screen.sh b/screen.sh
index 980747b..253d28f 100755
--- a/screen.sh
+++ b/screen.sh
@@ -15,6 +15,8 @@
tempfile=`mktemp`
+screenname="$1"
+shift
cat ~/.screenrc >> $tempfile
-cat ~/.screenrc-$1 >> $tempfile
-screen -S "screen-sh-$1" -c "${tempfile}"
+cat ~/.screenrc-$screenname>> $tempfile
+screen -S "screen-sh-$screenname" -c "${tempfile}" $@