Skip to content

Instantly share code, notes, and snippets.

@tbnorth
Last active December 3, 2019 15:31
Show Gist options
  • Save tbnorth/eccf4921a98827c0a91c8b8f271c8a30 to your computer and use it in GitHub Desktop.
Save tbnorth/eccf4921a98827c0a91c8b8f271c8a30 to your computer and use it in GitHub Desktop.
Launch multiple named screen sessions, offset date display, etc.
backtick 1 60 60 date -d-1hour +%H:%M
caption always
caption string "%{gk}%-w%{= ky}%45>*%t%{-}%+w%<"
# leave the above in so install_env doesn't re-add it
caption string "%{gk}%1` %-w%{= ky}%45>%t%{-}%+w%<"
# screen bash
shell "/usr/bin/bash"
# bind ^a^c screen bash
vbell off
term screen-256color
screen -X title $1 # name *this* window with first name
shift
for i in $@; do
screen -t $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment