From 3df25cc2802df80d2ce88a20cc01b85efaf51690 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Mon, 19 Dec 2022 19:10:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=81=D0=B5=D0=B2=D0=B4=D0=BE=D0=BD?= =?UTF-8?q?=D0=B8=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 75-aliases.zsh | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/75-aliases.zsh b/75-aliases.zsh index 272ae7f..7ae3b82 100644 --- a/75-aliases.zsh +++ b/75-aliases.zsh @@ -8,6 +8,7 @@ alias dotdrop="$HOME/etc/dotdrop.sh" --cfg="$HOME/etc/config.yaml" alias zcp='zmv -C' alias zln='zmv -L' +# shellcheck disable=SC2154 alias path='print -l $path' 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 apts='apt-cache show' aptf() { - [ -z $1 ] && return 1 - if [ -z $2 ]; then - apt-cache search $1 + [ -z "$1" ] && return 1 + if [ -z "$2" ]; then + apt-cache search "$1" else - apt-cache search $1 | grep $2 + apt-cache search "$1" | grep "$2" fi } +alias lzg='lazygit' +alias lzd='lazydocker' +alias tldr='tealdeer' + # Youtube -if command -v youtube-dl > /dev/null 2>&1; then - alias ydlbest="youtube-dl --merge-output-format mkv -f 'bestvideo+bestaudio'" - alias ydlaudio="youtube-dl -f bestaudio" - alias ydl="youtube-dl --merge-output-format mkv" +if command -v yt-dlp > /dev/null 2>&1; then + alias ydlbest="yt-dlp --merge-output-format mkv -f 'bestvideo+bestaudio'" + alias ydlaudio="yt-dlp -f bestaudio" + alias ydl="yt-dlp --merge-output-format mkv" + alias youtube-dl="yt-dlp" fi # feh command -v feh > /dev/null 2>&1 && alias feh="feh --cache-size 256 --version-sort --sort filename --image-bg black" # Замена шрифта у заголовка окна в i3 при использовании ssh или mosh -if [ ! -z ${DISPLAY+set} ] ; then +if [ -n "${DISPLAY+set}" ] ; then if command -v i3-msg >/dev/null 2>&1 ; then i3-mosh () { i3-msg -q title_format "%title" @@ -63,7 +69,6 @@ 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" -command -v lazygit > /dev/null 2>&1 && alias lg=lazygit # Фильтры (H,T,G,L определены в common-aliases) alias -g N1='1>/dev/null' @@ -84,4 +89,5 @@ alias -g XS0='| sort -z | xargs -0' alias -g Z='| fzf' +# shellcheck disable=SC1073,SC1064,SC1072 audio-join() ffmpeg -i "concat:${(j:|:)@[2,-1]}" -acodec copy $1