24
homedir/.config/zsh.d/modules/core
Normal file
24
homedir/.config/zsh.d/modules/core
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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
|
||||
}
|
Reference in New Issue
Block a user