function rchmod --description 'Recursively reset premissions of files and folders' if not command -sq 'find' echo "Can't find find." return 1 end find . -type d -exec chmod 755 {} + find . -type f -exec chmod 644 {} + end