Skip to content

Instantly share code, notes, and snippets.

@kmila
Last active December 24, 2015 00:19
Show Gist options
  • Save kmila/6716509 to your computer and use it in GitHub Desktop.
Save kmila/6716509 to your computer and use it in GitHub Desktop.
start_screen.sh
#!/bin/bash
if [ ! -f ~/.screenrc ]
then
cat << 'EOF' > ~/.screenrc
caption always "%w"
termcapinfo xterm ti@:te@
bindkey "^[[1;5D" prev
bindkey "^[[1;5C" next
EOF
fi
mkdir ~/.screendir
chmod 700 ~/.screendir
SCREENDIR=~/.screendir
export SCREENDIR
screen -D -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment