Add the following functions: - is-darwin - is-linux - is-bsd - is-cygwin And apply them everywhere I found code doing that what these functions do.
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 GNU coreutils ls to list directories grouped first, add the following line to zpreztorc:
zstyle ':prezto:module:utility:ls' dirs-first '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
To disable all spelling corrections, add the following line to 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 --unifiedeopens 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 (ls).
macOS 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 (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
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.