manage screenrc and set hostname in vagrant box

This commit is contained in:
Jan Dittberner 2015-10-11 12:02:22 +02:00
parent 1ae6c1e855
commit f5f373ec76
2 changed files with 21 additions and 0 deletions

View file

@ -4,3 +4,10 @@ base-packages:
- screen - screen
- htop - htop
- git - git
/home/vagrant/.screenrc:
file.managed:
- user: vagrant
- group: vagrant
- mode: 0644
- source: salt://base/screenrc

14
roots/base/screenrc Normal file
View file

@ -0,0 +1,14 @@
# vim: syntax=screen
hardstatus on
hardstatus alwayslastline
hardstatus string "%{= r}[ %{G}%H%{= r} ] %= %{=b b}%-w%{=rb db}%>%n %t%{-}%+w %=%{= r} [ %{G}%c %{M}%D %m-%d %{r}]"
startup_message off
defscrollback 10240
bind f eval "caption splitonly" "hardstatus ignore"
bind F eval "caption always" "hardstatus alwayslastline"
defbce "on"