diff --git a/.zprezto/abra/functions.zsh b/.zprezto/abra/functions.zsh index ce85fbd..2ccbcbe 100644 --- a/.zprezto/abra/functions.zsh +++ b/.zprezto/abra/functions.zsh @@ -1,3 +1,16 @@ +function myfacl { + FUNCTION_PRELUDE + + if [[ ( -z $1 ) || ( -z $2 ) ]]; then + echo ':(' + return 1 + fi + + setfacl -Rb "${@:2}" + setfacl -Rm "u:$1:rwX,g:$1:rwX,o::0" "${@:2}" + setfacl -Rdm "u:$1:rwX,g:$1:rwX,o::0" "${@:2}" +} + function is_local { local HOSTNAME="$(hostname)"