2012-04-14 05:49:14 -04:00
|
|
|
Utility
|
|
|
|
=======
|
|
|
|
|
2012-06-03 20:58:44 -04:00
|
|
|
Defines general aliases and functions.
|
|
|
|
|
|
|
|
Settings
|
|
|
|
--------
|
|
|
|
|
|
|
|
### Highlighting
|
|
|
|
|
|
|
|
If you have enabled color globally in *zshrc*, you may disable it for certain
|
|
|
|
commands.
|
|
|
|
|
2012-06-10 19:35:15 -04:00
|
|
|
To disable `ls` color, add the following line to *zshrc*; when coloring is
|
|
|
|
disabled, type indicators (\*, /, =>, @, =, |, %) will be appended to entries.
|
2012-06-03 20:58:44 -04:00
|
|
|
|
2012-09-03 16:08:39 -04:00
|
|
|
zstyle ':prezto:module:utility:ls' color 'no'
|
2012-06-03 20:58:44 -04:00
|
|
|
|
|
|
|
To disable `diff` highlighting, add the following line to *zshrc*:
|
|
|
|
|
2012-09-03 16:08:39 -04:00
|
|
|
zstyle ':prezto:module:utility:diff' color 'no'
|
2012-06-03 20:58:44 -04:00
|
|
|
|
|
|
|
To disable `wdiff` highlighting, add the following line to *zshrc*:
|
|
|
|
|
2012-09-03 16:08:39 -04:00
|
|
|
zstyle ':prezto:module:utility:wdiff' color 'no'
|
2012-06-03 20:58:44 -04:00
|
|
|
|
|
|
|
To disable `make` highlighting, add the following line to *zshrc*:
|
|
|
|
|
2012-09-03 16:08:39 -04:00
|
|
|
zstyle ':prezto:module:utility:make' color 'no'
|
2012-04-14 05:49:14 -04:00
|
|
|
|
|
|
|
Aliases
|
|
|
|
-------
|
|
|
|
|
2012-06-10 19:35:15 -04:00
|
|
|
### Disabled Spelling Correction
|
2012-06-03 20:58:44 -04:00
|
|
|
|
|
|
|
- `ack`
|
|
|
|
- `cd`
|
|
|
|
- `cp`
|
|
|
|
- `ebuild`
|
|
|
|
- `gcc`
|
|
|
|
- `gist`
|
2012-06-10 19:35:15 -04:00
|
|
|
- `grep`
|
2012-06-03 20:58:44 -04:00
|
|
|
- `heroku`
|
|
|
|
- `ln`
|
|
|
|
- `man`
|
|
|
|
- `mkdir`
|
|
|
|
- `mv`
|
|
|
|
- `mysql`
|
|
|
|
- `rm`
|
|
|
|
|
2012-06-10 19:35:15 -04:00
|
|
|
### Disabled File Globbing
|
2012-06-03 20:58:44 -04:00
|
|
|
|
|
|
|
- `fc`
|
|
|
|
- `find`
|
2012-08-06 19:24:36 -04:00
|
|
|
- `ftp`
|
2012-06-03 20:58:44 -04:00
|
|
|
- `history`
|
|
|
|
- `locate`
|
|
|
|
- `rake`
|
2012-08-06 19:24:36 -04:00
|
|
|
- `rsync`
|
|
|
|
- `scp`
|
|
|
|
- `sftp`
|
2012-06-03 20:58:44 -04:00
|
|
|
|
2012-06-10 19:35:15 -04:00
|
|
|
### General
|
2012-06-03 20:58:44 -04:00
|
|
|
|
2012-06-10 19:35:15 -04:00
|
|
|
- `_` executes a command as another user (`sudo`).
|
|
|
|
- `b` opens the default web browser.
|
|
|
|
- `cp` copies files and directories interactively.
|
|
|
|
- `e` opens the default editor.
|
|
|
|
- `ln` links files and directories interactively.
|
2012-06-12 15:13:21 -04:00
|
|
|
- `mkdir` creates directories, including intermediary directories.
|
2012-06-10 19:35:15 -04:00
|
|
|
- `mv` moves files and directories interactively.
|
|
|
|
- `p` opens the default pager.
|
|
|
|
- `po` removes a directory from the stack and changes to it (`popd`).
|
|
|
|
- `pu` changes the directory and pushes the old directory onto the stack
|
|
|
|
(`pushd`).
|
|
|
|
- `rm` removes files and directories interactively.
|
|
|
|
- `type` displays all the attribute values of a shell parameter.
|
|
|
|
|
|
|
|
### Files and Directories
|
|
|
|
|
|
|
|
- `ls` lists with directories grouped first (GNU only).
|
|
|
|
- `l` lists in one column, hidden files.
|
|
|
|
- `ll` lists human readable sizes.
|
|
|
|
- `lr` lists human readable sizes, recursively.
|
|
|
|
- `la` lists human readable sizes, hidden files.
|
2012-06-23 13:09:55 -04:00
|
|
|
- `lm` lists human readable sizes, hidden files through pager.
|
2012-06-10 19:35:15 -04:00
|
|
|
- `lx` lists sorted by extension (GNU only).
|
|
|
|
- `lk` lists sorted by size, largest last.
|
|
|
|
- `lt` lists sorted by date, most recent last.
|
|
|
|
- `lc` lists sorted by date, most recent last, shows change time.
|
|
|
|
- `lu` lists sorted by date, most recent last, shows access time.
|
|
|
|
- `sl` lists directory contents (`ls`).
|
|
|
|
|
|
|
|
### Mac OS X Everywhere
|
|
|
|
|
|
|
|
- `o` opens files and directories (`open` or `xdg-open`).
|
|
|
|
- `get` downloads files (`curl` or `wget`).
|
|
|
|
- `pbcopy` copies to the pasteboard (`pbcopy`, `xclip` or `xsel`).
|
|
|
|
- `pbpaste` pastes from the pasteboard (`pbcopy`, `xclip` or `xsel`).
|
|
|
|
- `pbc` copies to the pasteboard (`pbcopy`).
|
|
|
|
- `pbp` pastes from the pasteboard (`pbpaste`).
|
2012-06-03 20:58:44 -04:00
|
|
|
|
|
|
|
### Resource Usage
|
|
|
|
|
|
|
|
- `df` displays free disk space using human readable units.
|
|
|
|
- `du` displays disk usage using human readable units.
|
2012-06-12 15:13:21 -04:00
|
|
|
- `top` displays information about processes (aliased to `htop`, if installed).
|
2012-06-03 20:58:44 -04:00
|
|
|
- `topc` displays information about processes sorted by CPU usage (`htop` not
|
|
|
|
installed).
|
2012-06-12 15:13:21 -04:00
|
|
|
- `topm` displays information about processes sorted by RAM usage (`htop` not
|
2012-06-03 20:58:44 -04:00
|
|
|
installed).
|
|
|
|
|
2012-06-12 15:13:21 -04:00
|
|
|
### Miscellaneous
|
2012-06-03 20:58:44 -04:00
|
|
|
|
2012-05-21 20:18:30 -04:00
|
|
|
- `http-serve` serves a directory via HTTP.
|
2012-04-14 05:49:14 -04:00
|
|
|
|
|
|
|
Functions
|
|
|
|
---------
|
|
|
|
|
2012-06-03 20:58:44 -04:00
|
|
|
### General
|
|
|
|
|
2012-06-10 19:35:15 -04:00
|
|
|
- `slit` prints columns *1, 2, 3 ... n*.
|
2012-06-03 20:58:44 -04:00
|
|
|
|
|
|
|
### Files and Directories
|
|
|
|
|
2012-05-21 20:18:30 -04:00
|
|
|
- `cdls` changes to a directory and lists its contents.
|
2012-06-10 19:35:15 -04:00
|
|
|
- `dut` displays the grand total disk usage using human readable units.
|
2012-05-21 20:18:30 -04:00
|
|
|
- `find-exec` finds files and executes a command on them.
|
2012-06-03 20:58:44 -04:00
|
|
|
- `mkdcd` makes a directory and changes to it.
|
|
|
|
- `popdls` pops an entry off the directory stack and lists its contents.
|
|
|
|
- `pushdls` pushes an entry onto the directory stack and lists its contents.
|
|
|
|
|
|
|
|
### Developer
|
|
|
|
|
|
|
|
- `diff` highlights diff output (requires `colordiff` or `Git`).
|
|
|
|
- `make` highlights make output (requires `colormake`).
|
|
|
|
- `wdiff` highlights wdiff output (requires `wdiff `or `Git`).
|
2012-04-14 05:49:14 -04:00
|
|
|
|
2012-06-10 19:35:15 -04:00
|
|
|
### Resource usage
|
|
|
|
|
|
|
|
- `psu` displays user owned processes status.
|
|
|
|
|
2012-08-12 20:33:21 -04:00
|
|
|
### Search and Replace
|
|
|
|
|
|
|
|
- `prep` provides a grep-like pattern search.
|
|
|
|
- `psub` provides a sed-like pattern substitution.
|
|
|
|
|
2012-04-14 05:49:14 -04:00
|
|
|
Authors
|
|
|
|
-------
|
|
|
|
|
2012-05-21 20:18:30 -04:00
|
|
|
*The authors of this module should be contacted via the [issue tracker][1].*
|
2012-04-14 05:49:14 -04:00
|
|
|
|
2012-05-21 20:18:30 -04:00
|
|
|
- [Robby Russell](https://github.com/robbyrussell)
|
|
|
|
- [Suraj N. Kurapati](https://github.com/sunaku)
|
|
|
|
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
|
|
|
|
2012-09-03 16:08:39 -04:00
|
|
|
[1]: https://github.com/sorin-ionescu/prezto/issues
|
2012-04-14 05:49:14 -04:00
|
|
|
|