mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-10-24 22:59:10 +00:00
Utility
Defines general aliases and functions.
Settings
Highlighting
If you have enabled color globally in zpreztorc, you may disable it for certain commands.
To disable ls color, add the following line to zpreztorc; when coloring is
disabled, type indicators (*, /, =>, @, =, |, %) will be appended to entries.
zstyle ':prezto:module:utility:ls' color 'no'
To disable diff highlighting, add the following line to zpreztorc:
zstyle ':prezto:module:utility:diff' color 'no'
To disable wdiff highlighting, add the following line to zpreztorc:
zstyle ':prezto:module:utility:wdiff' color 'no'
To disable make highlighting, add the following line to zpreztorc:
zstyle ':prezto:module:utility:make' color 'no'
Aliases
Disabled Spelling Correction
ackcdcpebuildgccgistgrepherokulnmanmkdirmvmysqlrm
Disabled File Globbing
fcfindftphistorylocaterakersyncscpsftp
General
_executes a command as another user (sudo).bopens the default web browser.cpcopies files and directories interactively.eopens the default editor.lnlinks files and directories interactively.mkdircreates directories, including intermediary directories.mvmoves files and directories interactively.popens the default pager.poremoves a directory from the stack and changes to it (popd).puchanges the directory and pushes the old directory onto the stack (pushd).rmremoves files and directories interactively.typedisplays all the attribute values of a shell parameter.
Files and Directories
lslists with directories grouped first (GNU only).llists in one column, hidden files.lllists human readable sizes.lrlists human readable sizes, recursively.lalists human readable sizes, hidden files.lmlists human readable sizes, hidden files 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.sllists directory contents (ls).
Mac OS X Everywhere
oopens files and directories (openorxdg-open).getdownloads files (curlorwget).pbcopycopies to the pasteboard (pbcopy,xcliporxsel).pbpastepastes from the pasteboard (pbcopy,xcliporxsel).pbccopies to the pasteboard (pbcopy).pbppastes from the pasteboard (pbpaste).
Resource Usage
dfdisplays free disk space using human readable units.dudisplays disk usage using human readable units.topdisplays information about processes (aliased tohtop, if installed).topcdisplays information about processes sorted by CPU usage (htopnot installed).topmdisplays information about processes sorted by RAM usage (htopnot installed).
Miscellaneous
http-serveserves a directory via HTTP.
Functions
General
slitprints columns 1, 2, 3 ... n.
Files and Directories
cdlschanges to a directory and lists its contents.dutdisplays the grand total disk usage using human readable units.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).
Resource usage
psudisplays user owned processes status.
Search and Replace
prepprovides a grep-like pattern search.psubprovides a sed-like pattern substitution.
Authors
The authors of this module should be contacted via the issue tracker.