aliases.zsh

This commit is contained in:
Andrei Astafev 2020-12-09 09:41:39 +03:00
parent 7e4221b74f
commit a8520fc7d9
2 changed files with 22 additions and 4 deletions

6
.zshrc
View File

@ -13,10 +13,10 @@ source $ZDOTDIR/plugins.zsh
source $ZDOTDIR/agents.zsh
[ -e $ZDOTDIR/agents.user.zsh ] && source $ZDOTDIR/agents.user.zsh
source $ZDOTDIR/aliases.zsh
[ -e $ZDOTDIR/aliases.user.zsh ] && source $ZDOTDIR/aliases.user.zsh
source $ZDOTDIR/prompt.zsh
[ -e $ZDOTDIR/prompt.user.zsh ] && source $ZDOTDIR/prompt.user.zsh
source $ZDOTDIR/aliases.zsh
[ -e $ZDOTDIR/aliases.user.zsh ] && source $ZDOTDIR/aliases.user.zsh
true

View File

@ -9,7 +9,14 @@ alias aptp='sudo apt-get purge'
alias aptr='sudo apt-get remove'
alias aptc='sudo apt-get --purge autoremove'
alias aptk='sudo apt-key add'
alias apts='apt-cache search'
apts() {
[ -z $1 ] && return 1
if [ -z $2 ]; then
apt-cache search $1
else
apt-cache search $1 | grep $2
fi
}
# Youtube
alias ydlbest="youtube-dl --merge-output-format mkv -f 'bestvideo+bestaudio'"
@ -17,3 +24,14 @@ alias ydlbest="youtube-dl --merge-output-format mkv -f 'bestvideo+bestaudio'"
# feh
alias feh="feh --cache-size 256 --version-sort --sort filename --image-bg black"
# git
alias gu="git pull"
alias gur="git pull --recurse-submodules"
alias gsui="git submodule update --recursive --init"
alias gsur="git submodule update --recursive --init --remote"
# Фильтры
alias -g G="| grep"
alias -g L="| less"
alias -g NN='&>/dev/null'