mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
* 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
12 lines
794 B
Bash
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: -)
|