add utility documentation
This commit is contained in:
parent
e8936eb69e
commit
495bde2404
23
modules/utility/README.md
Normal file
23
modules/utility/README.md
Normal file
@ -0,0 +1,23 @@
|
||||
Utility
|
||||
=======
|
||||
|
||||
Adds utility aliases and functions.
|
||||
|
||||
Aliases
|
||||
-------
|
||||
|
||||
### General
|
||||
|
||||
| alias | command |
|
||||
| ----- | ------- |
|
||||
| `chmod` | `chmod --preserve-root -v` |
|
||||
| `chown` | `chown --preserve-root -v` |
|
||||
| `df` | `df -kh` |
|
||||
| `du` | `du -kh` |
|
||||
|
||||
### ls
|
||||
|
||||
| alias | command |
|
||||
| ----- | ------- |
|
||||
| `ls` | `ls --group-directories-first --color=auto` |
|
||||
| `l` | `ls -lAh` |
|
@ -2,11 +2,21 @@
|
||||
# utility functions and options
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# general aliases
|
||||
#
|
||||
|
||||
alias chmod='chmod --preserve-root -v'
|
||||
alias chown='chown --preserve-root -v'
|
||||
alias df='df -kh'
|
||||
alias du='du -kh'
|
||||
|
||||
|
||||
#
|
||||
# ls
|
||||
#
|
||||
|
||||
# ls colors
|
||||
if [[ dircolors ]]; then
|
||||
if [[ -s ${HOME}/.dir_colors ]]; then
|
||||
eval "$(dircolors --sh ${HOME}/.dir_colors)"
|
||||
@ -24,7 +34,3 @@ else
|
||||
fi
|
||||
|
||||
alias l='ls -lAh' # one column, all files, human-readable sizes
|
||||
|
||||
# resource usage
|
||||
alias df='df -kh'
|
||||
alias du='du -kh'
|
||||
|
Reference in New Issue
Block a user