oh-my-bash/aliases/chmod.aliases.sh
Toan Nguyen 53fb803740 OMB - Major Refactor (#39)
* OMB - Major Refactor

- Aliases and completions now works like plugins (need to enabled in .bashrc)
- Removed the compatible check in spectrum.sh, OMB now works with Bash v3.x like the old days.
- Removed core plugin, added those bash functions into base.sh and load during startup.
- Updated OSH template for new installations
- Added history config and few other stuff from #17

@TODO: Added a shell script to update old version of .bashrc to new one.

* Fixed ShellCheck issues

* Fixed ShellCheck issues
2019-01-23 03:05:32 -08:00

12 lines
794 B
Bash

#!/usr/bin/env bash
# ---------------------------------------------------------------------------
alias perm='stat --printf "%a %n \n "' # perm: Show permission of target in number
alias 000='chmod 000' # ---------- (nobody)
alias 640='chmod 640' # -rw-r----- (user: rw, group: r, other: -)
alias 644='chmod 644' # -rw-r--r-- (user: rw, group: r, other: -)
alias 755='chmod 755' # -rwxr-xr-x (user: rwx, group: rx, other: x)
alias 775='chmod 775' # -rwxrwxr-x (user: rwx, group: rwx, other: rx)
alias mx='chmod a+x' # ---x--x--x (user: --x, group: --x, other: --x)
alias ux='chmod u+x' # ---x------ (user: --x, group: -, other: -)