diff options
Diffstat (limited to 'functions/rchmod.fish')
| -rw-r--r-- | functions/rchmod.fish | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/functions/rchmod.fish b/functions/rchmod.fish new file mode 100644 index 0000000..b54348f --- /dev/null +++ b/functions/rchmod.fish @@ -0,0 +1,11 @@ +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 |
