Tags
-='cd -'

...=../..
....=../../..
.....=../../../..
......=../../../../..
1='cd -1'
2='cd -2'
3='cd -3'
4='cd -4'
5='cd -5'
6='cd -6'
7='cd -7'
8='cd -8'
9='cd -9'
CA='2>&1 | cat -A'

G='| grep'
H='| head'
L='| less'

LL='2>&1 | less'
M='| most'
NE='2> /dev/null'
NUL='> /dev/null 2>&1'
P='2>&1| pygmentize -l pytb'
T='| tail'
_='sudo '
aac='sudo aptitude autoclean'
aar='sudo aptitude autoremove'
abd='sudo aptitude build-dep'
ac='sudo aptitude clean'
acs='apt-cache search'
ad='sudo aptitude update'
adg='sudo aptitude update && sudo aptitude safe-upgrade'
ads='sudo apt-get dselect-upgrade'

adu='sudo aptitude update && sudo aptitude dist-upgrade'
afs='apt-file search --regexp'
afu='sudo apt-file update'

age=apt-get
ai='sudo aptitude install'
ail='sed -e '\''s/  */ /g'\'' -e '\''s/ *//'\'' | cut -s -d '\'' '\'' -f 1 | xargs sudo aptitude install'
allpkgs='aptitude search -F "%p" --disable-columns ~i'
alu='sudo apt update && apt list -u && sudo apt upgrade'
ap='sudo aptitude purge'
api=aptitude
app='apt-cache policy'
aps='aptitude search'
ar='sudo aptitude remove'
as='aptitude -F '\''* %p -> %d \n(%v/%V)'\'' --no-gui --disable-columns search'
asrc='apt-get source'
au='sudo aptitude safe-upgrade'

ccat=colorize_cat
cless=colorize_less

cp='cp -i'
di='sudo dpkg -i'
dia='sudo dpkg -i ./*.deb'
diff='diff --color'
dud='du -d 1 -h'
duf='du -sh *'
egrep='egrep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}'

fd='find . -type d -name'
ff='find . -type f -name'

fgrep='fgrep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox}'
globurl='noglob urlglobber '
gstu='gsta --include-untracked'

h=history
help=man

hgrep='fc -El 0 | grep'
history='omz_history -i'
kclean='sudo aptitude remove -P "?and(~i~nlinux-(ima|hea) ?not(~n$(uname -r)))"'

l='ls -lFh'

lS='ls -1FSsh'
la='ls -lAFh'
lart='ls -1Fcart'
ldot='ls -ld .*'
ll='ls -l'
lr='ls -tRFh'
lrt='ls -1Fcrt'
ls='ls --color=tty'
lsa='ls -lah'
lsn='ls -1'
lsr='ls -lARFh'
lt='ls -ltFh'

md='mkdir -p'

mv='mv -i'
mydeb='time dpkg-buildpackage -rfakeroot -us -uc'
naliases=n-aliases
ncd=n-cd
nenv=n-env
nfunctions=n-functions
nhelp=n-help
nhistory=n-history
nkill=n-kill
noptions=n-options
npanelize=n-panelize
p='ps -f'
rd=rmdir
rm='rm -i'
sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '
sortnr='sort -n -r'
t='tail -f'

ta='tmux attach -t'
tad='tmux attach -d -t'
tkss='tmux kill-session -t'
tksv='tmux kill-server'
tl='tmux list-sessions'
tmux=_zsh_tmux_plugin_run
tmuxconf='$EDITOR $ZSH_TMUX_CONFIG'
ts='tmux new-session -s'

unexport=unset
which-command=whence
z='_z 2>&1'
zshrc='${=EDITOR} ${ZDOTDIR:-$HOME}/.zshrc'