Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chdir ${HOME}
- altscreen on # Don't keep content of a `vim' or else
- autodetach on # Detach if SIGHUP
- # deflogin off # Don't register the window in utmp
- defmode 0600 # Set the default mode of each pseudo tty
- defnonblock on # Don't freeze the whole screen waiting
- defscrollback 1024 # Set the default number of scrollback lines
- defshell -${SHELL} # Set the shell to the top shell
- hardstatus off
- monitor on # Monitor the above shell window
- nethack off #
- startup_message off # Disable startup messages
- vbell on # Visual bell
- defutf8 on
- vbell_msg "-*- beep -*- on %t (%n)"
- activity "-*- activity -*- on %t (%n)"
- # -----------------------------------------------------------------------------
- # Remove all default bindings that we won't use
- # -----------------------------------------------------------------------------
- bind "'" # disable 'select'
- bind * # disable 'displays'
- bind , # disable 'license'
- bind . # disable 'dumptermcap'
- bind < # disable 'readbuf'
- bind = # disable 'removebuf'
- bind > # disable 'writebuf'
- bind A # disable 'title'
- bind B # disable 'pow_break'
- bind D # disable 'pow_detach'
- bind F # disable 'fit'
- bind H # disable 'log'
- bind K # disable 'kill'
- bind M # disable 'monitor'
- bind N # disable 'number'
- bind Q # disable 'only'
- bind S # disable 'split'
- bind W # disable 'width'
- bind X # disable 'remove'
- bind Z # disable 'reset'
- bind [ # disable 'copy'
- bind \ # disable 'quit'
- bind ] # disable 'paste .'
- bind _ # disable 'silence'
- bind b # disable 'break'
- bind f # disable 'flow'
- bind h # disable 'hardcopy'
- bind k # disable 'kill'
- bind l # disable 'refresh'
- bind q # disable 'xon'
- bind s # disable 'xon'
- bind v # disable 'version'
- bind w # disable 'focus'
- bind x # disable 'lockscreen'
- bind z # disable 'suspend'
- bind { # disable 'history'
- bind | # disable 'split -v'
- bind } # disable 'history'
- bind " " # disable 'next'
- bind ^? # disable 'prev'
- bind ^@ # disable 'next'
- bind ^B # disable 'break'
- bind ^C # disable 'create'
- bind ^D # disable 'detach'
- bind ^F # disable 'flow'
- bind ^G # disable 'vbell'
- bind ^H # disable 'prev'
- bind ^I # disable 'focus'
- bind ^L # disable 'refresh'
- bind ^M # disable 'lastmsg'
- bind ^N # disable 'next'
- bind ^P # disable 'prev'
- bind ^Q # disable 'xoff'
- bind ^R # disable 'wrap'
- bind ^S # disable 'xon'
- bind ^T # disable 'time'
- bind ^V # disable 'digraph'
- bind ^W # disable 'window'
- bind ^X # disable 'lockscreen'
- bind ^[ # disable 'copy'
- bind ^] # disable 'paste .'
- bind ^k # disable 'kill'
- # -----------------------------------------------------------------------------
- # Add new bindings
- # -----------------------------------------------------------------------------
- bind B copy # add 'copy': enable buffer view up / down
- bind ^I focus # add 'focus': tab to switch window
- bind ^C kill # add 'kill': kill the current window
- bind b vbell # add 'vbell': enable/disable visual bell
- # bind j only # add 'kill': kill the current window
- bind m monitor # add 'monitor': monitor activity
- bind r redisplay # refresh screen
- bind t title # change name of window
- # bind s split # add 'split'
- bind w displays # show windows
- # bind ^X lockscreen # lock the screen with $LOCKPRG
- bind = resize =
- bind + resize +1
- bind - resize -1
- bind _ resize max
- # -----------------------------------------------------------------------------
- # Terminal settings
- # -----------------------------------------------------------------------------
- # all termcap entries are now duplicated as terminfo entries.
- # only difference should be the slightly modified syntax, and check for
- # terminfo entries, that are already corected in the database.
- #
- # AB (setab) = Set background color (ANSI compatible)
- # AF (setaf) = Set foreground color (ANSI compatible)
- # AX = Set ANSI support with default fg/bg color (\E[39m / \E[49m)
- # WS = This sequence resizes our window
- # Allow PuTTY to use colors
- termcapinfo putty* XT
- termcapinfo putty* OP
- termcapinfo putty* LP:G0
- termcapinfo putty* 'setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m'
- termcapinfo putty* 'setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m'
- # PuTTY has function keys F1->F4
- termcapinfo putty* 'k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~'
- # -----------------------------------------------------------------------------
- # Window titles
- # -----------------------------------------------------------------------------
- # Every x seconds, requery window title
- backtick 1 600 600 id -un
- backtick 2 600 600 hostname
- # screensaver
- # idle 200 eval "screen cmatrix -x -b" "idle 0"
- # The window's title
- hardstatus ignore
- hardstatus string "%1`@%2`"
- caption always
- caption string "%{= KW}%-w%{= wk}%50>%n %t%{-}%+w%< %=%H %l"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement