initial
This commit is contained in:
parent
090766cab0
commit
a33f99e765
1725 changed files with 129819 additions and 0 deletions
12
dot_oh-my-zsh/plugins/profiles/profiles.plugin.zsh
Normal file
12
dot_oh-my-zsh/plugins/profiles/profiles.plugin.zsh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# You will probably want to list this plugin as the first in your .zshrc.
|
||||
|
||||
# This will look for a custom profile for the local machine and each domain or
|
||||
# subdomain it belongs to. (e.g. com, example.com and foo.example.com)
|
||||
parts=(${(s:.:)HOST})
|
||||
for i in {${#parts}..1}; do
|
||||
profile=${(j:.:)${parts[$i,${#parts}]}}
|
||||
file=$ZSH_CUSTOM/profiles/$profile
|
||||
if [ -f $file ]; then
|
||||
source $file
|
||||
fi
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue