diff --git a/sh/alias/chmod.sh b/sh/alias/chmod.sh index 611f768..b768411 100644 --- a/sh/alias/chmod.sh +++ b/sh/alias/chmod.sh @@ -1,15 +1,25 @@ +# chmod + +# change mode +#| chmod +#= cm +rwx_change_mode() { + chmod \ + "${@}" +} + # change mode to directory #= cmd -a__change_mode_directory() { - chmod \ +rwx_change_mode_directory() { + rwx_change_mode \ "755" \ "${@}" } # change mode to file #= cmf -a__change_mode_file() { - chmod \ +rwx_change_mode_file() { + rwx_change_mode \ "644" \ "${@}" }