config/.zsh/30_alias.zsh
Mathieu Maret 7b13704c50 [zsh] Add features form grml.org/zsh
Add research function (google/ wiki ....)
Add Alias
Add BROWSER env variable
...
2015-06-30 15:43:15 +02:00

44 lines
988 B
Bash

alias mv='nocorrect mv' # no spelling correction on mv
alias cp='nocorrect cp'
alias mkdir='nocorrect mkdir'
alias rm='nocorrect rm'
#alias
alias ls='ls --color=auto'
alias l='ls'
alias ll='ls --color=auto -lh'
alias la='ls --color=auto -lha'
alias lll='ls --color -lh | less -R'
alias lsg='ls | grep -i '
alias ..='cd ..'
alias ../..='cd ../..'
alias ../../..='cd ../../..'
alias xte='nohup xterm &' # xte lancera un xterm qui ne se fermera pas si on ferme le terminal
alias minicom='minicom -c on'
#Extension Alias
alias -s html=$BROWSER
alias -s org=$BROWSER
alias -s php=$BROWSER
alias -s com=$BROWSER
alias -s net=$BROWSER
alias -s png=feh
alias -s jpg=feh
alias -s gif=feg
alias -s sxw=soffice
alias -s doc=soffice
alias -s gz=tar -xzvf
alias -s bz2=tar -xjvf
alias -s java=$EDITOR
alias -s txt=$EDITOR
alias -s PKGBUILD=$EDITOR
# command L equivalent to command |less
alias -g L='|less -R'
# command S equivalent to command &> /dev/null &
alias -g S='&> /dev/null &'