mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
29 lines
688 B
Bash
29 lines
688 B
Bash
# Puppet Lair
|
|
|
|
# add a function path
|
|
fpath=($ZSH/functions $fpath)
|
|
|
|
# Load all of the config files in ~/oh-my-zsh that end in .zsh
|
|
# TIP: Add files you don't want in git to .gitignore
|
|
for config_file ($ZSH/lib/*.zsh); do
|
|
source $config_file
|
|
done
|
|
|
|
# Figure out the SHORT hostname
|
|
if [ -n "$commands[scutil]" ]; then
|
|
# OS X
|
|
SHORT_HOST=$(scutil --get ComputerName)
|
|
else
|
|
SHORT_HOST=${HOST/.*/}
|
|
fi
|
|
|
|
# Save the location of the current completion dump file.
|
|
ZSH_COMPDUMP="${ZDOTDIR:-${HOME}}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}"
|
|
|
|
# Load and run compinit
|
|
autoload -U compinit
|
|
compinit -i -d "${ZSH_COMPDUMP}"
|
|
|
|
|
|
# load theme
|
|
test -f "$ZSH/themes/$THEME" && source "$ZSH/themes/$THEME"
|