blob: 02d87707ad505801ef05d0209ac27f701fcf3393 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# zshrc/30_aliases
#
# Define command aliases
#
# Copyright © 2010, 2013, 2014 Tobias Klauser <tklauser@distanz.ch>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.distanz.ch/dotfiles/zsh.git
# TODO: look at the salias function in .zshrc.grml
# command aliases
alias l='ls'
alias ll='ls -l'
alias la='ls -la'
alias cd..='cd ..'
alias ...='cd ../../'
alias cal='cal -m'
alias egrep='egrep --color=auto'
alias grep='grep --color=auto'
alias m='mount'
alias u='umount'
# show history with timestamps (taken from oh-my-zsh)
alias history='fc -El 1'
# enable color support of ls
if [ "${TERM}" != "dumb" ] ; then
is_darwin || alias ls='ls --color=auto'
fi
# use colors when browsing man pages, but only if not using LESS_TERMCAP_*
if [ -z "$LESS_TERMCAP_md" ] ; then
[ -d ~/.terminfo/ ] && alias man='TERMINFO=~/.terminfo/ LESS=C TERM=mostlike PAGER=less man'
fi
# no spelling correction for these
alias cp='nocorrect cp'
alias ln='nocorrect ln'
alias mkdir='nocorrect mkdir'
alias mv='nocorrect mv'
alias rm='nocorrect rm'
# python
alias pylab='ipython --pylab'
alias qpylab='ipython qtconsole --ConsoleWidget.font_family="Inconsolata" --ConsoleWidget.font_size=11 --colors=Linux --pylab '
# get top 10 shell commands
alias top10='print -l ? ${(o)history%% *} | uniq -c | sort -nr | head -n 10'
# bofh fortunes
alias bofh='fortune bofh-excuses'
# Quake 3 (on the second screen)
alias q3='SDL_VIDEO_FULLSCREEN_HEAD=1 ioquake3'
# host aliases
alias distanz="ssh tklauser@distanz.ch -t \"screen -dRU\""
alias distanz6="ssh -6 tklauser@6.distanz.ch -t \"screen -dRU\""
alias sym=distanz
alias sym6=distanz6
alias lema="ssh tklauser@lema.distanz.ch -t \"screen -dRU\""
#
# global aliases
#
alias -g 1N="1>/dev/null"
alias -g 2N="2>/dev/null"
alias -g 12N="1>&2>/dev/null"
alias -g L="| less"
# vim:ft=zsh
|