Created
December 19, 2010 23:36
-
-
Save wizardishungry/747832 to your computer and use it in GitHub Desktop.
basic screenrc and corresponding entries from bashrc to make it work nice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
export PS1='\[\033k\033\\\]\! \h:\w\$ ' | |
# only use __git_ps1 if the function is defined | |
type __git_ps1 2> /dev/null|grep func > /dev/null | |
if [ $? -eq 0 ]; then | |
export PS1='\[\033k\033\\\]\! \h:\w$(__git_ps1)\$ ' | |
fi | |
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}($OSTYPE/$HOSTTYPE): ${PWD/#$HOME/~} \007"' # this sets window titlebar and could def display more information :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startup_message off | |
caption always "%?%F%{= Kk}%:%{=u kR}%? %h %-024=%{+b} %C%a %D %d %M %Y%{= db}" | |
#hardstatus alwayslastline '%{= kw} [ %{= kg}%H%{= kw} ][%= %{= kw}%?%-Lw?%{= kW}%n*%f %t%?%?%{= kw}%?%+Lw%?%?%= ][ %{r}%l%{w} ]' | |
hardstatus alwayslastline '%{= kG}[%= %{= kw}%?%-Lw%?%{kg}(%{b y}%n*%f%t%?(%u)%?%{-b kg})%{w}%?%+Lw%?%?%= %{g}][%{r}%l%{w}]' | |
shelltitle "$ |" # shells have blank title or the active process is the title :) | |
nethack on | |
sorendition "+b kG" | |
defutf8 on | |
defscrollback 1024 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment