In most systems, python2 or python3 command/soft-link would almost always exist. In such cases, we don't need to invoke `python` to detect the version. This should speed things up a bit as well.
Utility
Defines general aliases and functions.
This module must be loaded before the completion module so that the
provided completion definitions are loaded automatically by completion
module.
Note: Some of the utilities configured in this module might be provided via
GNU utilities with incompatible arguments on non-GNU systems. In such cases,
using gnu-utility module is recommended and it must be loaded
before this module.
To elaborate, the relative order of loading the modules would be
gnu-utility, utility and completion.
Settings
Highlighting
If you have enabled color globally in ${ZDOTDIR:-$HOME}/.zpreztorc, you may
disable it selectively for certain commands.
To disable ls color, add the following to ${ZDOTDIR:-$HOME}/.zpreztorc.
When coloring is disabled, type indicators (\*, /, =>, @, =, |, %)
will be appended to entries.
zstyle ':prezto:module:utility:ls' color 'no'
To disable GNU coreutils ls to list directories grouped first, add the
following line to ${ZDOTDIR:-$HOME}/.zpreztorc:
zstyle ':prezto:module:utility:ls' dirs-first 'no'
To disable grep highlighting, add the following line to
${ZDOTDIR:-$HOME}/.zpreztorc:
zstyle ':prezto:module:utility:grep' color 'no'
To disable diff highlighting, add the following line to
${ZDOTDIR:-$HOME}/.zpreztorc:
zstyle ':prezto:module:utility:diff' color 'no'
To disable wdiff highlighting, add the following line to
${ZDOTDIR:-$HOME}/.zpreztorc:
zstyle ':prezto:module:utility:wdiff' color 'no'
To disable make highlighting, add the following line to
${ZDOTDIR:-$HOME}/.zpreztorc:
zstyle ':prezto:module:utility:make' color 'no'
Download Helper
To configure the download helper to be used with alias get, add the following
to ${ZDOTDIR:-$HOME}/.zpreztorc, and replace '<helper>' with 'curl',
'wget' or 'aria2c'.
zstyle -s ':prezto:module:utility:download' helper '<helper>'
Aliases
Disabled Spelling Correction
ackcdcpebuildgccgistgrepherokulnmanmkdirmvmysqlrm
To disable all spelling corrections, add the following line to
${ZDOTDIR:-$HOME}/.zpreztorc:
zstyle ':prezto:module:utility' correct 'no'
Disabled File Globbing
bowerfcfindftphistorylocaterakersync(selectively enabled for local files)scp(selectively enabled for local files)sftp
General
_executes a command as another user (sudo).bopens the default web browser.diffushorthand fordiff --unified.eopens the default editor.mkdircreates directories, including intermediary directories.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).sasearch aliases for a word.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 (correction forls).
macOS Everywhere
oopens files and directories (openorxdg-open).getdownloads files (curl,wgetoraria2c).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 (aliases topydf, if installed).dudisplays disk usage using human readable units.topdisplays information about processes.topcdisplays information about processes sorted by CPU usage.topmdisplays information about processes sorted by RAM usage.
Safe ops
By default, cp,ln, mv and rm are aliased to their interactive variants.
If this is not desired, it can be disabled by adding the following line to
${ZDOTDIR:-$HOME}/.zpreztorc:
zstyle ':prezto:module:utility' safe-ops 'no'.
In addition, the following aliases have been added:
cpicopies files and directories interactively.lnilinks files and directories interactively.mvimoves files and directories interactively.rmiremoves files and directories interactively.
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.noremoteglobenable local path globbing but disable remote path globbing.
Developer
diffhighlights diff output (requirescolordiff).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.