dotfiles/homedir/.config/zsh.d/modules/core
fbt c78cb78ff0 init
Signed-off-by: fbt <fbt@fleshless.org>
2017-05-03 16:10:13 +03:00

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
}