2010-12-05 16:57:06 +01:00
|
|
|
# @author Sebastian Tramp <mail@sebastian.tramp.name>
|
|
|
|
# @license http://opensource.org/licenses/gpl-license.php
|
|
|
|
#
|
|
|
|
# alias definitions which can be edited/modified with 'aedit'
|
|
|
|
#
|
|
|
|
|
2010-12-27 15:56:39 +01:00
|
|
|
alias aedit=" $EDITOR ~/.zsh/aliases; source ~/.zsh/aliases"
|
|
|
|
alias fedit=" $EDITOR ~/.zsh/functions; source ~/.zsh/functions"
|
|
|
|
alias pedit=" $EDITOR ~/.zsh/private; source ~/.zsh/private"
|
2010-12-27 16:50:17 +01:00
|
|
|
alias vedit=" $EDITOR ~/.vimrc"
|
2010-12-05 16:57:06 +01:00
|
|
|
|
|
|
|
#alias man="unset PAGER; man"
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
alias less=/usr/share/vim/vim72/macros/less.sh
|
|
|
|
|
|
|
|
##### standard aliases (start with a space to be ignored in history)
|
|
|
|
alias ls='ls --color=auto'
|
|
|
|
alias ll=' ls -lhF'
|
|
|
|
alias la=' ls -A'
|
|
|
|
alias l=' ls -CF'
|
|
|
|
alias v=" clear; ls -Flgh"
|
|
|
|
|
|
|
|
alias g='ps aux|grep '
|
|
|
|
alias d=' dirs -v'
|
|
|
|
|
2010-12-28 20:47:35 +01:00
|
|
|
alias ..=' cd ..; ls'
|
|
|
|
alias ...=' cd ..; cd ..; ls'
|
|
|
|
alias ....=' cd ..; cd ..; cd ..; ls'
|
|
|
|
|
2010-12-05 16:57:06 +01:00
|
|
|
##### global aliases
|
|
|
|
# zsh buch s.82 (z.B. find / ... NE)
|
|
|
|
alias -g NE='2>|/dev/null'
|
|
|
|
alias -g NO='&>|/dev/null'
|
|
|
|
|
|
|
|
# http://rayninfo.co.uk/tips/zshtips.html
|
|
|
|
alias -g G='| grep -'
|
2010-12-28 20:47:35 +01:00
|
|
|
alias -g P='2>&1 | $PAGER'
|
2010-12-20 10:45:27 +01:00
|
|
|
alias -g L='| less'
|
2010-12-05 16:57:06 +01:00
|
|
|
|
2010-12-20 10:45:27 +01:00
|
|
|
# http://www.commandlinefu.com/commands/view/7284/zsh-suffix-to-inform-you-about-long-command-ending
|
|
|
|
# zsh suffix to inform you about long command ending make, Just add "R" (without quotes) suffix to it and you can do other things:
|
|
|
|
# zsh will inform you when you can see the results.
|
|
|
|
alias -g R=' &; jobs | tail -1 | read A0 A1 A2 cmd; echo "running $cmd"; fg "$cmd"; zenity --info --text "$cmd done"; unset A0 A1 A2 cmd'
|
2010-12-05 16:57:06 +01:00
|
|
|
|
|
|
|
##### suffix aliases (mostly mapped to xdg-open which runs the gnome/kde default app)
|
|
|
|
|
|
|
|
alias -s tex="rubber --inplace --maxerr -1 --short --force --warn all --pdf"
|
|
|
|
|
|
|
|
alias -s pdf="xdg-open"
|
|
|
|
alias -s PDF="xdg-open"
|
|
|
|
alias -s xoj="xournal"
|
|
|
|
|
|
|
|
alias -s jar="java -jar"
|
|
|
|
|
|
|
|
alias -s iso="vlc"
|
|
|
|
alias -s avi="xdg-open"
|
2010-12-27 15:56:39 +01:00
|
|
|
alias -s mov="xdg-open"
|
2010-12-05 16:57:06 +01:00
|
|
|
alias -s mpg="xdg-open"
|
|
|
|
alias -s m4v="xdg-open"
|
|
|
|
alias -s ogg="xdg-open"
|
|
|
|
alias -s ogv="xdg-open"
|
|
|
|
|
|
|
|
alias -s tif="xdg-open"
|
|
|
|
alias -s tiff="xdg-open"
|
|
|
|
alias -s png="xdg-open"
|
|
|
|
alias -s jpg="xdg-open"
|
|
|
|
alias -s JPG="xdg-open"
|
|
|
|
alias -s gif="xdg-open"
|
|
|
|
alias -s svg="xdg-open"
|
|
|
|
alias -s psd="xdg-open"
|
|
|
|
|
|
|
|
alias -s com="xdg-open"
|
|
|
|
alias -s de="xdg-open"
|
|
|
|
alias -s org="xdg-open"
|
|
|
|
|
|
|
|
alias -s rdf="rapper --count"
|
|
|
|
alias -s owl="rapper --count"
|
|
|
|
alias -s ttl="rapper -i turtle --count"
|
|
|
|
alias -s n3="rapper -i turtle --count"
|
|
|
|
alias -s nt="rapper -i ntriples --count"
|
|
|
|
|
|
|
|
alias -s ods="xdg-open"
|
|
|
|
alias -s xls="xdg-open"
|
|
|
|
alias -s xlsx="xdg-open"
|
|
|
|
alias -s csv="xdg-open"
|
|
|
|
|
|
|
|
alias -s odt="xdg-open"
|
|
|
|
alias -s doc="xdg-open"
|
|
|
|
alias -s docx="xdg-open"
|
|
|
|
alias -s rtf="xdg-open"
|
|
|
|
alias -s dot="xdg-open"
|
|
|
|
|
|
|
|
alias -s ppt="xdg-open"
|
|
|
|
alias -s odp="xdg-open"
|
|
|
|
|
|
|
|
alias -s sla="xdg-open"
|
|
|
|
|
|
|
|
alias -s exe="xdg-open"
|
|
|
|
|