From ef0a7a6f2867e246c62dd0f9a7656dd6da22de00 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 18 Nov 2024 16:13:13 +0100 Subject: [PATCH] chmod --- sh/alias/chmod.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sh/alias/chmod.sh b/sh/alias/chmod.sh index 89b8bd7..1c55b40 100644 --- a/sh/alias/chmod.sh +++ b/sh/alias/chmod.sh @@ -1,12 +1,14 @@ # change mode to directory -cmd() { +cmd() { sh_a__change_mode_directory "${@}"; } +sh_a__change_mode_directory() { chmod \ "755" \ "${@}" } # change mode to file -cmf() { +cmf() { sh_a__change_mode_file "${@}"; } +sh_a__change_mode_file() { chmod \ "644" \ "${@}"