aliases.zsh
This commit is contained in:
parent
7e4221b74f
commit
a8520fc7d9
6
.zshrc
6
.zshrc
@ -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
|
||||
|
20
aliases.zsh
20
aliases.zsh
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user