zsh/75-aliases.zsh

47 lines
1.2 KiB
Bash
Raw Normal View History

2019-05-28 19:05:46 +00:00
# Dotdrop
alias dotdrop="$HOME/etc/dotdrop.sh" --cfg="$HOME/etc/config.yaml"
2020-12-27 12:36:23 +00:00
# zmv
alias zcp='zmv -C'
alias zln='zmv -L'
2019-05-28 19:05:46 +00:00
# APT
2020-04-18 07:19:12 +00:00
alias aptu='sudo apt-get update'
alias aptn='sudo apt-get update && sudo apt-get dist-upgrade'
alias apti='sudo apt-get install'
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'
2021-07-22 06:19:16 +00:00
alias apts='apt-cache show'
aptf() {
2020-12-09 06:41:39 +00:00
[ -z $1 ] && return 1
if [ -z $2 ]; then
apt-cache search $1
else
apt-cache search $1 | grep $2
fi
}
2021-07-13 13:17:09 +00:00
2019-05-28 19:05:46 +00:00
# Youtube
YDL="$HOME/bin/youtube-dl"
[ ! -x "$YDL" ] && YDL="$(which youtube-dl)"
if [ -x "$YDL" ]; then
alias ydlbest="youtube-dl --merge-output-format mkv -f 'bestvideo+bestaudio'"
alias ydl="youtube-dl --merge-output-format mkv"
fi
2019-05-28 19:05:46 +00:00
2020-01-11 16:09:45 +00:00
# feh
alias feh="feh --cache-size 256 --version-sort --sort filename --image-bg black"
2020-12-09 06:41:39 +00:00
# git
2020-12-20 18:47:16 +00:00
alias gpa="git remote | xargs -L1 git push --all"
2020-12-09 06:41:39 +00:00
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"
# Фильтры (H,T,G,L определены в common-aliases)
2020-12-09 06:41:39 +00:00
alias -g NN='&>/dev/null'