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
26 lines
1.2 KiB
Bash
26 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
# ---------------------------------------------------------------------------
|
|
|
|
# Directory Listing aliases
|
|
alias dir='ls -hFx'
|
|
alias l.='ls -d .* --color=tty' # short listing, only hidden files - .*
|
|
alias l='ls -lathF' # long, sort by newest to oldest
|
|
alias L='ls -latrhF' # long, sort by oldest to newest
|
|
alias la='ls -Al' # show hidden files
|
|
alias lc='ls -lcr' # sort by change time
|
|
alias lk='ls -lSr' # sort by size
|
|
alias lh='ls -lSrh' # sort by size human readable
|
|
alias lm='ls -al | more' # pipe through 'more'
|
|
alias lo='ls -laSFh' # sort by size largest to smallest
|
|
alias lr='ls -lR' # recursive ls
|
|
alias lt='ls -ltr' # sort by date
|
|
alias lu='ls -lur' # sort by access time
|
|
|
|
|
|
# lr: Full Recursive Directory Listing
|
|
# ------------------------------------------
|
|
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less'
|
|
|
|
alias dud='du -d 1 -h' # Short and human-readable file listing
|
|
alias duf='du -sh *' # Short and human-readable directory listing
|