Псевдонимы
This commit is contained in:
		@@ -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 "<span foreground='#AAAAFF' font-weight='bold'>%title</span>"
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user