=== modified file 'zsh-functions/zsv_config' --- zsh-functions/zsv_config 2014-02-09 22:19:04 +0000 +++ zsh-functions/zsv_config 2014-02-09 21:51:00 +0000 @@ -17,15 +17,15 @@ # autoload all zsv_ functions local -a func_files -local f +local func func_files=( $^fpath/zsv_*(N) ) -for f in $func_files ; do - if ! [[ -r "$f" ]]; then - print -r >&2 - "$f is not readable" +for func in $func_files ; do + if ! [[ -r "$func" ]]; then + print -r >&2 - "$func is not readable" continue fi - autoload -Uz ${f:t} + autoload -Uz $func:t done # vim: ft=zsh noet ts=4 sts=4 sw=4 === modified file 'zsh-functions/zsv_generic' --- zsh-functions/zsv_generic 2014-02-09 22:19:04 +0000 +++ zsh-functions/zsv_generic 2014-02-09 21:46:21 +0000 @@ -1,4 +1,4 @@ -if ! grep -q "^[^ ]* ${zsv_cgroup:h} " /proc/mounts; then +if ! grep -q "[^ ]* $zsv_cgroup:h " /proc/mounts; then mkdir -p $zsv_cgroup:h mount zsv $zsv_cgroup:h -t cgroup -o rw,nosuid,nodev,noexec,relatime,name=zsv fi