config/.zsh/30_alias.zsh

58 lines
1.7 KiB
Bash
Raw Normal View History

2010-04-26 10:34:09 +02:00
alias mv='nocorrect mv' # no spelling correction on mv
alias cp='nocorrect cp'
alias mkdir='nocorrect mkdir'
alias rm='nocorrect rm'
2012-05-30 17:29:45 +02:00
alias sudo='nocorrect sudo'
2016-03-02 18:09:47 +01:00
alias tm='tmux attach || tmux'
2010-04-26 10:34:09 +02:00
#alias
alias ls='ls --color=auto'
alias l='ls'
alias ll='ls --color=auto -lh'
alias la='ls --color=auto -lha'
2011-01-12 16:15:31 +01:00
alias lll='ls --color -lh | less -R'
2010-04-26 10:34:09 +02:00
alias lsg='ls | grep -i '
alias ..='cd ..'
alias ../..='cd ../..'
alias ../../..='cd ../../..'
alias greptag='grep --exclude=tags --exclude=cscope.out'
2014-01-02 10:06:31 +01:00
alias logcat="adb logcat"
2010-04-26 10:34:09 +02:00
alias xte='nohup xterm &' # xte lancera un xterm qui ne se fermera pas si on ferme le terminal
alias minicom='minicom -c on'
2014-04-02 16:36:30 +02:00
alias vims='vim --servername vimserver'
alias vimo='vim --servername vimserver --remote-tab'
2015-11-25 11:35:22 +01:00
alias agrep='grep --exclude=.git --exclude-dir=out --exclude-dir=prebuilts --exclude-dir=docs --exclude=tags --exclude=cscope.out'
alias beep='mpv /usr/share/sounds/freedesktop/stereo/complete.oga &> /dev/null &' #sound in package sound-theme-freedesktop
#Extension Alias
alias -s html=$BROWSER
alias -s org=$BROWSER
alias -s php=$BROWSER
alias -s com=$BROWSER
alias -s net=$BROWSER
2017-11-24 10:43:22 +01:00
alias -s png=eog
alias -s jpg=eog
alias -s gif=eog
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
alias -s pdf=evince
# command L equivalent to command |less
alias -g L='|less -R'
# command S equivalent to command &> /dev/null &
alias -g S='&> /dev/null &'
2012-07-03 09:34:01 +02:00
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
2015-12-07 12:02:52 +01:00
alias senv='source ~/venv/bin/activate'