shithub: werc

ref: 7f6c14c548db415baf11075d69be60773d1e2a42
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^'/'^`{echo $i|sed 's!/!\\/!g'}^'/d; '
}