shithub: werc

ref: fbd16e76e4e780b3b4c5a9adf1826f5f4be604a5
dir: /bin/wercconf.rc/

View raw version
# To be used from config files
fn conf_perm_redirect {
    if(~ $#* 1)
        perm_redirect $1
    if not
        perm_redir_patterns=($perm_redir_patterns $1 $2)
}

fn conf_hide_paths {
    for(i in $*)
       dirfilter=$dirfilter^'/^'$i'$/d; '
}