mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
This plugin allows you to load settings based on the current hostname. The per-host config files are stored in `~/.zsh/perhost`. I was not sure whether to look in `~/.zsh` or rather in `~/.oh-my-zsh/etc/perhost`. Both seemed fine to me, although I slightly prefer the second. Any thoughts?
4 lines
106 B
Bash
4 lines
106 B
Bash
local hostconfig=~/.zsh/perhost/$(hostname).zsh
|
|
if [ -f ${hostconfig} ]; then
|
|
source ${hostconfig}
|
|
fi
|