Псевдонимы

This commit is contained in:
Andrei Astafev 2022-12-19 19:10:18 +03:00
parent bc176b9f3a
commit 3df25cc280

View File

@ -8,6 +8,7 @@ alias dotdrop="$HOME/etc/dotdrop.sh" --cfg="$HOME/etc/config.yaml"
alias zcp='zmv -C' alias zcp='zmv -C'
alias zln='zmv -L' alias zln='zmv -L'
# shellcheck disable=SC2154
alias path='print -l $path' alias path='print -l $path'
alias mkdir='mkdir -pv' alias mkdir='mkdir -pv'
@ -21,26 +22,31 @@ alias aptc='sudo apt-get --purge autoremove && sudo apt-get clean'
alias aptk='sudo apt-key add' alias aptk='sudo apt-key add'
alias apts='apt-cache show' alias apts='apt-cache show'
aptf() { aptf() {
[ -z $1 ] && return 1 [ -z "$1" ] && return 1
if [ -z $2 ]; then if [ -z "$2" ]; then
apt-cache search $1 apt-cache search "$1"
else else
apt-cache search $1 | grep $2 apt-cache search "$1" | grep "$2"
fi fi
} }
alias lzg='lazygit'
alias lzd='lazydocker'
alias tldr='tealdeer'
# Youtube # Youtube
if command -v youtube-dl > /dev/null 2>&1; then if command -v yt-dlp > /dev/null 2>&1; then
alias ydlbest="youtube-dl --merge-output-format mkv -f 'bestvideo+bestaudio'" alias ydlbest="yt-dlp --merge-output-format mkv -f 'bestvideo+bestaudio'"
alias ydlaudio="youtube-dl -f bestaudio" alias ydlaudio="yt-dlp -f bestaudio"
alias ydl="youtube-dl --merge-output-format mkv" alias ydl="yt-dlp --merge-output-format mkv"
alias youtube-dl="yt-dlp"
fi fi
# feh # feh
command -v feh > /dev/null 2>&1 && alias feh="feh --cache-size 256 --version-sort --sort filename --image-bg black" command -v feh > /dev/null 2>&1 && alias feh="feh --cache-size 256 --version-sort --sort filename --image-bg black"
# Замена шрифта у заголовка окна в i3 при использовании ssh или mosh # Замена шрифта у заголовка окна в i3 при использовании ssh или mosh
if [ ! -z ${DISPLAY+set} ] ; then if [ -n "${DISPLAY+set}" ] ; then
if command -v i3-msg >/dev/null 2>&1 ; then if command -v i3-msg >/dev/null 2>&1 ; then
i3-mosh () { i3-mosh () {
i3-msg -q title_format "<span foreground='#AAAAFF' font-weight='bold'>%title</span>" i3-msg -q title_format "<span foreground='#AAAAFF' font-weight='bold'>%title</span>"
@ -63,7 +69,6 @@ alias gu="git pull"
alias gur="git pull --recurse-submodules" alias gur="git pull --recurse-submodules"
alias gsui="git submodule update --recursive --init" alias gsui="git submodule update --recursive --init"
alias gsur="git submodule update --recursive --init --remote" alias gsur="git submodule update --recursive --init --remote"
command -v lazygit > /dev/null 2>&1 && alias lg=lazygit
# Фильтры (H,T,G,L определены в common-aliases) # Фильтры (H,T,G,L определены в common-aliases)
alias -g N1='1>/dev/null' alias -g N1='1>/dev/null'
@ -84,4 +89,5 @@ alias -g XS0='| sort -z | xargs -0'
alias -g Z='| fzf' alias -g Z='| fzf'
# shellcheck disable=SC1073,SC1064,SC1072
audio-join() ffmpeg -i "concat:${(j:|:)@[2,-1]}" -acodec copy $1 audio-join() ffmpeg -i "concat:${(j:|:)@[2,-1]}" -acodec copy $1