manage screenrc and set hostname in vagrant box
This commit is contained in:
parent
33338af352
commit
6a0f88d7d4
3 changed files with 23 additions and 0 deletions
2
Vagrantfile
vendored
2
Vagrantfile
vendored
|
@ -14,6 +14,8 @@ Vagrant.configure(2) do |config|
|
||||||
# boxes at https://atlas.hashicorp.com/search.
|
# boxes at https://atlas.hashicorp.com/search.
|
||||||
config.vm.box = "debian/jessie64"
|
config.vm.box = "debian/jessie64"
|
||||||
|
|
||||||
|
config.vm.hostname = "gva-dev"
|
||||||
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
# Disable automatic box update checking. If you disable this, then
|
||||||
# boxes will only be checked for updates when the user runs
|
# boxes will only be checked for updates when the user runs
|
||||||
# `vagrant box outdated`. This is not recommended.
|
# `vagrant box outdated`. This is not recommended.
|
||||||
|
|
|
@ -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
salt/roots/base/screenrc
Normal file
14
salt/roots/base/screenrc
Normal 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"
|
Loading…
Reference in a new issue