Implement aliasing of watch to viddy.

master
Icedream 2022-06-23 19:30:59 +02:00
parent bab3a9551b
commit 739edf5ae3
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
2 changed files with 11 additions and 1 deletions

View File

@ -34,6 +34,7 @@ ZSH_ROOT_ALIAS="${ZSH_ROOT_ALIAS:-1}"
ZSH_SYMFONY_CLI="${ZSH_SYMFONY_CLI:-$(when_binary_available symfony)}" ZSH_SYMFONY_CLI="${ZSH_SYMFONY_CLI:-$(when_binary_available symfony)}"
ZSH_SYNTAX_HIGHLIGHTING="${ZSH_SYNTAX_HIGHLIGHTING:-1}" ZSH_SYNTAX_HIGHLIGHTING="${ZSH_SYNTAX_HIGHLIGHTING:-1}"
ZSH_THEFUCK=${ZSH_THEFUCK:-1} ZSH_THEFUCK=${ZSH_THEFUCK:-1}
ZSH_VIDDY=${ZSH_VIDDY:-$(when_binary_available viddy)}
ZSH_DEBUG_SECTION_START_PREFIX="\\ " ZSH_DEBUG_SECTION_START_PREFIX="\\ "
ZSH_DEBUG_INDENT="${ZSH_DEBUG_INDENT:- |}" ZSH_DEBUG_INDENT="${ZSH_DEBUG_INDENT:- |}"
@ -261,6 +262,14 @@ if [ $ZSH_LOGO_LS -gt 0 ]; then
fi fi
section_end section_end
# viddy
section "viddy"
if [ $ZSH_VIDDY -gt 0 ]; then
log "Aliasing watch to viddy"
alias watch=viddy
fi
section_end
# root alias (sudo -EHs) # root alias (sudo -EHs)
section "root alias" section "root alias"
if [ $ZSH_ROOT_ALIAS -gt 0 ]; then if [ $ZSH_ROOT_ALIAS -gt 0 ]; then

View File

@ -112,7 +112,8 @@ if has_tags pm:pacman; then
customizepkg-git \ customizepkg-git \
zsh \ zsh \
zsh-syntax-highlighting \ zsh-syntax-highlighting \
logo-ls logo-ls \
viddy
if has_tags desktop; then if has_tags desktop; then
yay_install \ yay_install \