1
0
Fork 0
mirror of synced 2024-11-22 15:25:34 -05:00

add utility documentation

This commit is contained in:
Matt Hamilton 2015-12-15 18:49:15 -05:00
parent e8936eb69e
commit 495bde2404
2 changed files with 34 additions and 5 deletions

23
modules/utility/README.md Normal file
View 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` |

View file

@ -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'