mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
Improve screen experience
This commit is contained in:
parent
4f6363d248
commit
2bd6ca065a
3 changed files with 41 additions and 8 deletions
|
|
@ -59,6 +59,10 @@ prompt_build_simple() {
|
||||||
echo -n "${HOSTNAME%%.local} "
|
echo -n "${HOSTNAME%%.local} "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n $STY ]]; then
|
||||||
|
buffer="${buffer}screen "
|
||||||
|
fi
|
||||||
|
|
||||||
# add venv info
|
# add venv info
|
||||||
set_color -p yellow
|
set_color -p yellow
|
||||||
if [[ -n "$VIRTUAL_ENV" ]]; then
|
if [[ -n "$VIRTUAL_ENV" ]]; then
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,36 @@
|
||||||
|
# less noise
|
||||||
startup_message off
|
startup_message off
|
||||||
|
|
||||||
hardstatus on
|
|
||||||
hardstatus alwayslastline
|
|
||||||
#hardstatus string "%3n %t%? @%u%?%? [%h]%?%=%c"
|
|
||||||
hardstatus string '%{= kW}%-Lw%{= kY}%50>%n%f* %t%{= kW}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
|
|
||||||
|
|
||||||
defscrollback 1024
|
|
||||||
|
|
||||||
vbell off
|
vbell off
|
||||||
|
|
||||||
|
# login shell
|
||||||
|
shell -${SHELL}
|
||||||
|
|
||||||
|
# tab-like bar
|
||||||
|
hardstatus on
|
||||||
|
hardstatus alwayslastline
|
||||||
|
#hardstatus string '%{= kW}%-Lw%{= kY}%50>%n%f* %t%{= kW}%+Lw%< %{= kG}%-=%c %d-%M-%y%{-}'
|
||||||
|
hardstatus string '%{= gk}%-Lw%50>%n%f* %t%+Lw%< %-="%H" %c %d-%M-%y%{-}'
|
||||||
|
|
||||||
|
# split title
|
||||||
|
#caption always "%3n %t%? @%u%?%? [%h]%?%=%c"
|
||||||
|
|
||||||
|
# more room
|
||||||
|
defscrollback 10000
|
||||||
|
|
||||||
|
# survive brutality
|
||||||
|
autodetach on
|
||||||
|
|
||||||
|
# colors
|
||||||
|
term screen-256color
|
||||||
|
|
||||||
|
# scroll
|
||||||
|
#termcapinfo xterm* ti@:te@
|
||||||
|
|
||||||
|
# tmux-like bindings
|
||||||
|
escape ^bb
|
||||||
|
bind w windowlist -b
|
||||||
|
bind x kill
|
||||||
|
bind ^z suspend
|
||||||
|
|
||||||
|
bind j focus down
|
||||||
|
bind k focus up
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,10 @@ set_prompt() {
|
||||||
buffer="${buffer}${HOST} "
|
buffer="${buffer}${HOST} "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n $STY ]]; then
|
||||||
|
buffer="${buffer}screen "
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -n "$VIRTUAL_ENV" ]]; then
|
if [[ -n "$VIRTUAL_ENV" ]]; then
|
||||||
buffer="${buffer}%F{yellow}${VIRTUAL_ENV##*/} "
|
buffer="${buffer}%F{yellow}${VIRTUAL_ENV##*/} "
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue