From e7764f9b08072cfb67c2d3ecf075df9a80aee6fd Mon Sep 17 00:00:00 2001 From: Deposite Pirate Date: Sun, 12 Jan 2025 14:40:33 +0100 Subject: Import config. --- functions/rchmod.fish | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 functions/rchmod.fish (limited to 'functions/rchmod.fish') 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 -- cgit v1.3.1