dotfiles/homedir/.config/zsh.d/modules/core

25 lines
407 B
Bash

# Functions common to other modules
# vim: ft=zsh
# Run the supplied command and null all the output
function nullexec {
"$@" &>/dev/null
}
# Compile all includes
function newconf {
for i in ~/.zshrc ~/.config/zsh.d/*; do
if ! [[ $i =~ .+\.zwc ]]; then
msg "Compiling $i..."
zcompile $i
fi
done
}
# set PATH from misc_path
function set_misc_path {
for p in $@; do
PATH="$p:$PATH"
done
}