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'
|
|
|
|
#
|
|
|
|
|
2011-04-11 22:52:38 +02:00
|
|
|
export EDITOR="vim"
|
2012-04-16 23:05:02 +02:00
|
|
|
alias vi="vim"
|
2013-06-06 16:05:36 +02:00
|
|
|
alias aedit=" $EDITOR $ZSH_CONFIG/aliases.zsh; source $ZSH_CONFIG/aliases.zsh"
|
|
|
|
alias fedit=" $EDITOR $ZSH_CONFIG/functions.zsh; source $ZSH_CONFIG/functions.zsh"
|
2012-08-23 11:08:03 +02:00
|
|
|
alias pedit=" $EDITOR $ZSH_CONFIG/private.zsh; source $ZSH_CONFIG/private.zsh"
|
2010-12-05 16:57:06 +01:00
|
|
|
|
|
|
|
#alias man="unset PAGER; man"
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
|
2011-10-14 19:55:31 +02:00
|
|
|
alias sign='gpg --detach-sign --armor'
|
2012-04-16 23:05:02 +02:00
|
|
|
|
2010-12-05 16:57:06 +01:00
|
|
|
##### standard aliases (start with a space to be ignored in history)
|
2011-07-24 21:21:54 +02:00
|
|
|
# default ls is untouched, except coloring
|
|
|
|
alias ls=' ls --color=auto'
|
2011-07-20 01:39:58 +02:00
|
|
|
alias myls=' ls -C -F -h --color=always'
|
2012-08-23 10:39:02 +02:00
|
|
|
alias l=" myls -l"
|
2011-07-20 01:39:58 +02:00
|
|
|
alias ll=' myls -l'
|
2012-08-23 10:39:02 +02:00
|
|
|
alias la=' myls -lA'
|
2012-08-08 13:14:49 +02:00
|
|
|
alias v=" clear; ll -gh" # standard directory view
|
2011-07-19 11:48:15 +02:00
|
|
|
alias vs=" v **/*(.)" # show all files in all subdirs plain in a list
|
2010-12-05 16:57:06 +01:00
|
|
|
|
2011-07-27 13:11:55 +02:00
|
|
|
alias p=' ps aux | grep'
|
2011-09-27 23:31:33 +02:00
|
|
|
alias g='git'
|
2013-06-06 16:05:36 +02:00
|
|
|
alias b='brew'
|
2010-12-05 16:57:06 +01:00
|
|
|
alias d=' dirs -v'
|
2012-01-30 09:01:52 +01:00
|
|
|
alias ka="killall"
|
2010-12-05 16:57:06 +01:00
|
|
|
|
2011-07-19 11:48:15 +02:00
|
|
|
alias cd=' cd'
|
2010-12-28 20:47:35 +01:00
|
|
|
alias ..=' cd ..; ls'
|
|
|
|
alias ...=' cd ..; cd ..; ls'
|
|
|
|
alias ....=' cd ..; cd ..; cd ..; ls'
|
2011-07-19 11:48:15 +02:00
|
|
|
alias cd..='..'
|
|
|
|
alias cd...='...'
|
|
|
|
alias cd....='....'
|
|
|
|
|
|
|
|
# alias to create a next-link in your home to tag the current workingdir
|
|
|
|
alias linkthis='rm -f ~/next; ln -s $PWD ~/next'
|
2010-12-28 20:47:35 +01:00
|
|
|
|
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'
|
2011-04-11 22:52:38 +02:00
|
|
|
alias -g M='| most'
|
2011-01-09 10:39:04 +01:00
|
|
|
alias -g C='| wc -l'
|
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.
|
2012-04-16 23:05:02 +02:00
|
|
|
#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
|
|
|
|
2012-08-08 13:14:49 +02:00
|
|
|
##### suffix aliases (mostly mapped to open which runs the gnome/kde default app)
|
2010-12-05 16:57:06 +01:00
|
|
|
|
|
|
|
alias -s tex="rubber --inplace --maxerr -1 --short --force --warn all --pdf"
|
|
|
|
|
2011-07-19 11:48:15 +02:00
|
|
|
alias -s 1="man -l"
|
|
|
|
alias -s 2="man -l"
|
|
|
|
alias -s 3="man -l"
|
|
|
|
alias -s 4="man -l"
|
|
|
|
alias -s 5="man -l"
|
|
|
|
alias -s 6="man -l"
|
|
|
|
alias -s 7="man -l"
|
2013-06-06 16:05:36 +02:00
|
|
|
alias -s epub="open"
|
2012-08-08 13:14:49 +02:00
|
|
|
alias -s pdf="open"
|
|
|
|
alias -s PDF="open"
|
2010-12-05 16:57:06 +01:00
|
|
|
alias -s xoj="xournal"
|
|
|
|
|
2012-11-02 14:28:48 +01:00
|
|
|
alias -s md="open"
|
|
|
|
alias -s markdown="open"
|
2012-01-30 09:01:52 +01:00
|
|
|
alias -s htm="$BROWSER"
|
|
|
|
alias -s html="$BROWSER"
|
2010-12-05 16:57:06 +01:00
|
|
|
alias -s jar="java -jar"
|
2011-08-12 11:40:31 +02:00
|
|
|
alias -s deb="sudo dpkg -i"
|
2010-12-05 16:57:06 +01:00
|
|
|
|
|
|
|
alias -s iso="vlc"
|
2012-08-08 13:14:49 +02:00
|
|
|
alias -s avi=" open"
|
|
|
|
alias -s AVI=" open"
|
|
|
|
alias -s mov=" open"
|
|
|
|
alias -s mpg=" open"
|
|
|
|
alias -s m4v=" open"
|
|
|
|
alias -s mp4=" open"
|
|
|
|
alias -s rmvb=" open"
|
|
|
|
alias -s MP4=" open"
|
|
|
|
alias -s ogg=" open"
|
|
|
|
alias -s ogv=" open"
|
|
|
|
alias -s flv=" open"
|
|
|
|
alias -s mkv=" open"
|
|
|
|
alias -s wav=" open"
|
2013-06-06 16:05:36 +02:00
|
|
|
alias -s webm=" open"
|
2012-08-08 13:14:49 +02:00
|
|
|
|
|
|
|
alias -s tif="open"
|
|
|
|
alias -s tiff="open"
|
|
|
|
alias -s png="open"
|
|
|
|
alias -s jpg="open"
|
|
|
|
alias -s jpeg="open"
|
|
|
|
alias -s JPG="open"
|
|
|
|
alias -s gif="open"
|
|
|
|
alias -s svg="open"
|
|
|
|
alias -s psd="open"
|
|
|
|
|
|
|
|
alias -s com="open"
|
|
|
|
alias -s de="open"
|
|
|
|
alias -s org="open"
|
2010-12-05 16:57:06 +01:00
|
|
|
|
|
|
|
alias -s rdf="rapper --count"
|
|
|
|
alias -s owl="rapper --count"
|
|
|
|
alias -s ttl="rapper -i turtle --count"
|
2011-07-19 11:48:15 +02:00
|
|
|
alias -s tt="rapper -i turtle --count"
|
2010-12-05 16:57:06 +01:00
|
|
|
alias -s n3="rapper -i turtle --count"
|
|
|
|
alias -s nt="rapper -i ntriples --count"
|
2011-04-11 22:52:38 +02:00
|
|
|
alias -s ntriples="rapper -i ntriples --count"
|
|
|
|
alias -s ntriple="rapper -i ntriples --count"
|
2010-12-05 16:57:06 +01:00
|
|
|
|
2012-08-08 13:14:49 +02:00
|
|
|
alias -s ods="open"
|
|
|
|
alias -s xls="open"
|
|
|
|
alias -s xlsx="open"
|
|
|
|
alias -s csv="open"
|
2010-12-05 16:57:06 +01:00
|
|
|
|
2012-08-08 13:14:49 +02:00
|
|
|
alias -s pot="open"
|
|
|
|
alias -s odt="open"
|
|
|
|
alias -s doc="open"
|
|
|
|
alias -s docx="open"
|
|
|
|
alias -s rtf="open"
|
|
|
|
alias -s dot="open"
|
2010-12-05 16:57:06 +01:00
|
|
|
|
2012-08-08 13:14:49 +02:00
|
|
|
alias -s ppt="open"
|
|
|
|
alias -s pptx="open"
|
|
|
|
alias -s odp="open"
|
2010-12-05 16:57:06 +01:00
|
|
|
|
2012-08-08 13:14:49 +02:00
|
|
|
alias -s plist="plutil"
|
2010-12-05 16:57:06 +01:00
|
|
|
|
2012-08-08 13:14:49 +02:00
|
|
|
alias -s sla="open"
|
|
|
|
|
|
|
|
alias -s exe="open"
|
2010-12-05 16:57:06 +01:00
|
|
|
|
2012-04-16 23:05:02 +02:00
|
|
|
alias -s tjp="tj3"
|
|
|
|
alias -s asc="gpg"
|
2013-06-06 16:05:36 +02:00
|
|
|
alias -s pem="openssl x509 -noout -text -in "
|