mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-11-09 17:42:36 +00:00
Utility
Defines general aliases and functions.
Settings
Highlighting
If you have enabled color globally in zshrc, you may disable it for certain commands.
To disable ls color, add the following line to zshrc. If coloring is
disabled, type indicators (*, /, =>, @, |) will be appended to entries.
zstyle ':omz:module:utility:ls' color 'no'
To disable diff highlighting, add the following line to zshrc:
zstyle ':omz:module:utility:diff' color 'no'
To disable wdiff highlighting, add the following line to zshrc:
zstyle ':omz:module:utility:wdiff' color 'no'
To disable make highlighting, add the following line to zshrc:
zstyle ':omz:module:utility:make' color 'no'
Aliases
The ls Family
lslists with directories grouped first (GNU only).llists in one column, hidden files.lllists human readable sizes.lrlists recursively.lalists hidden files.lplists through pager.lxlists sorted by extension (GNU only).lklists sorted by size, largest last.ltlists sorted by date, most recent last.lclists sorted by date, most recent last, shows change time.lulists sorted by date, most recent last, shows access time.slis aliased to ls.
General
_is aliased to sudo.bopens the default web browser.eopens the default editor.popens the default pager.poremoves a directory from the stack and changes to it.puadds the current directory to the stack and changes to a directory.typedisplays all attribute values of a shell parameter.
Spelling Correction Disabled
ackcdcpebuildgccgistherokulnmanmkdirmvmysqlrmscp
File Globbing Disabled
fcfindhistorylocaterake
Mac OS X
ois alised toopenon Mac OS X andxdg-openon non Mac OS X.getdownloads a file usingcurlorwget.pbcopyuses xclip or xsel on non Mac OS X.pbpasteuses xclip or xsel on non Mac OS X.pbcis alised topbcopy.pbpis alised topbpaste.
Resource Usage
dfdisplays free disk space using human readable units.dudisplays disk usage using human readable units.topdisplays information about processes (alised tohtop, if installed).topcdisplays information about processes sorted by CPU usage (htopnot installed).topmdispalys information about processes sorted by RAM usage (htopnot installed).
Misecellaneous
http-serveserves a directory via HTTP.pminedisplays user owned processes status.
Functions
General
slitprints columns 1 2 3 ... n.
Files and Directories
cdlschanges to a directory and lists its contents.duhdisplays human readable disk usage.find-execfinds files and executes a command on them.mkdcdmakes a directory and changes to it.popdlspops an entry off the directory stack and lists its contents.pushdlspushes an entry onto the directory stack and lists its contents.
Developer
diffhighlights diff output (requirescolordifforGit).makehighlights make output (requirescolormake).wdiffhighlights wdiff output (requireswdifforGit).
Authors
The authors of this module should be contacted via the issue tracker.