Defines general aliases and functions.
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'
ack
cd
cp
ebuild
gcc
gist
grep
heroku
ln
man
mkdir
mv
mysql
rm
bower
fc
find
ftp
history
locate
rake
rsync
scp
sftp
_
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.mkdir
creates directories, including intermediary directories.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
ort
displays all the attribute values of a shell parameter.w3md
opens markdown as HTML in w3m.
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.lm
lists human readable sizes, hidden files through pager.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
).cl
clears the screen before listing in one column.lsd
lists hidden files only.lss
lists symbolic links only.lsmod
lists numerical permissions.
o
opens files and directories (open
orxdg-open
).get
downloads files (curl
orwget
).pbcopy
copies to the pasteboard (pbcopy
,xclip
orxsel
).pbpaste
pastes from the pasteboard (pbcopy
,xclip
orxsel
).pbc
copies to the pasteboard (pbcopy
).pbp
pastes from the pasteboard (pbpaste
).vv
pastes from the pasteboard anywhere in a command ($(pbp)
).cpy
copies to the pasteboard without line endings (pbcopy
).pubkey
copies the current user's public key to the pasteboard.
df
displays free disk space using human readable units.du
displays disk usage using human readable units.top
displays information about processes (aliased tohtop
, if installed).topc
displays information about processes sorted by CPU usage (htop
not installed).topm
displays information about processes sorted by RAM usage (htop
not installed).
http-serve
serves a directory via HTTP.sha1
prints the SHA1 hash of a passed file.rel
reloads the default shell.pp
lists open files.
slit
prints columns 1, 2, 3 ... n.c
clear the screen with scissors symbols (✂).ytgif
converts YouTube to GIF.
cdls
changes to a directory and lists its contents.dut
displays the grand total disk usage using human readable units.find-exec
finds files and executes a command on them.fs
search files in directory for a string.mkcd
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.treep
pipe tree output into the less pager.buf
back up a file using the date.
diff
highlights diff output (requirescolordiff
orGit
).make
highlights make output (requirescolormake
).sprunge
sends shell output to http://sprunge.us and generates a link.wdiff
highlights wdiff output (requireswdiff
orGit
).
psu
displays user owned processes status.
prep
provides a grep-like pattern search.psub
provides a sed-like pattern substitution.
The authors of this module should be contacted via the issue tracker.