projects
/
user
/
alex
/
software
/
my-snippets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a "screen" subcommand to krbroot
[user/alex/software/my-snippets.git]
/
krbroot
diff --git
a/krbroot
b/krbroot
index 5f475afc78aeb706d73e127b6ba110cf7c751e85..ee98c870eb6435a7b1e305e587f37f371c09d8f3 100755
(executable)
--- a/
krbroot
+++ b/
krbroot
@@
-14,6
+14,10
@@
case $1 in
klist -s || krbroot init || exit 1;
HOST="`hostname` (krbroot)" pagsh -c $SHELL
;;
+ screen)
+ klist -s || krbroot init || exit 1;
+ HOST="`hostname` (krbroot)" pagsh -c 'exec "$@"' exec "$@"
+ ;;
ssh)
klist -s || krbroot init || exit 1;
shift