Added screen_attach function to start/reattach screen sessions on console/xterm.
This commit is contained in:
parent
f159818c88
commit
60f84452cf
3 changed files with 33 additions and 3 deletions
|
|
@ -7,7 +7,6 @@ export LANG="en_GB.UTF-8"
|
|||
export LC_COLLATE="POSIX" # 'C' causes issues with some applications
|
||||
# export LC_CTYPE="POSIX" # Not sure why I set this in the first place...
|
||||
export LESS="-RMi -PM?f%F:stdin. -- Page %dt of %D -- %lt/%L (%Pt\%)$"
|
||||
export MANPAGER="less -Mis -PM'Page %dt$'"
|
||||
export PAGER="less"
|
||||
export PATH="/usr/local/sbin:/usr/sbin:/opt/sbin:/sbin:$PATH"
|
||||
export VISUAL="$EDITOR"
|
||||
|
|
@ -19,10 +18,12 @@ if [[ "$_PLATFORM" = "Linux" ]]; then
|
|||
export I_WANT_A_BROKEN_PS=1
|
||||
export LYNX_CFG="$HOME/.lynx.cfg"
|
||||
export LYNX_LSS="$HOME/.lynx.lss"
|
||||
export MANPAGER="most"
|
||||
export MANPATH="$HOME/.local/share/man:$MANPATH"
|
||||
hash dircolors >/dev/null 2>&1 && eval "$(dircolors -b ~/.dir_colors)"
|
||||
elif [[ "$_PLATFORM" = "Darwin" ]]; then
|
||||
export LSCOLORS="ExGxdxdxCxDxDxbcacbeae"
|
||||
export MANPAGER="less -Mis -PM'Page %dt$'"
|
||||
export MANPATH="/opt/local/share/man:$MANPATH"
|
||||
export PATH="/opt/local/sbin:/opt/local/bin:$PATH"
|
||||
else
|
||||
|
|
@ -116,6 +117,10 @@ unset _OUTPUT _PLATFORM
|
|||
|
||||
# Screen.
|
||||
hash screen >/dev/null 2>&1 && {
|
||||
# Reattach existing screens.
|
||||
screen_attach
|
||||
|
||||
# Output some screen info.
|
||||
export SCREENDIR="$HOME/.screen-$(hostname --short)"
|
||||
if [[ ! -e ~/.hushlogin ]]; then
|
||||
if [[ ! -z "$STY" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue