1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-29 17:18:13 +01:00
eoli3n-dotfiles/roles/zsh
2018-01-04 20:59:34 +01:00
..
tasks switch from powerline to airline, from localhost to multiple hosts 2018-01-04 20:59:34 +01:00
templates by_host and by_os dirs 2017-12-28 19:25:01 +01:00
README.md by_host and by_os dirs 2017-12-28 19:25:01 +01:00

By hostname specific configuration in zshrc

Add a dir named as hostname in by_host dir to include specific host configuration in config file

mkdir templates/by_host/$(hostname)
echo << EOF > templates/by_host/$(hostname)/zshrc.j2
# Alias to include for $(hostname)
alias foo=bar
EOF

By OS specific configuration in zshrc

Add a dir named as hostname in by_host dir to include specific host configuration in config file

mkdir templates/by_os/<archlinux|debian|centos>
echo << EOF > templates/by_os/<archlinux|debian|centos>/zshrc.j2
# Alias to include for <archlinux|debian|centos>
alias foo2=bar2
EOF