Alias ls to logo-ls.

master
Icedream 2020-09-30 10:03:22 +02:00
parent 6307525616
commit 977253676e
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
2 changed files with 11 additions and 1 deletions

View File

@ -20,6 +20,7 @@ ZSH_COMPAT_BASH_COMPLETION=${ZSH_COMPAT_BASH_COMPLETION:-1}
ZSH_CUSTOM=${ZSH_CUSTOM:-1} ZSH_CUSTOM=${ZSH_CUSTOM:-1}
ZSH_DEFAULT_TERM=${ZSH_DEFAULT_TERM:-1} ZSH_DEFAULT_TERM=${ZSH_DEFAULT_TERM:-1}
ZSH_GPG_PINENTRY_FIX=${ZSH_GPG_PINENTRY_FIX:-1} ZSH_GPG_PINENTRY_FIX=${ZSH_GPG_PINENTRY_FIX:-1}
ZSH_LOGO_LS=${ZSH_LOGL_LS:-$(when_binary_available logo-ls)}
ZSH_PIPX=${ZSH_PIPX:-$(when_binary_available pipx)} ZSH_PIPX=${ZSH_PIPX:-$(when_binary_available pipx)}
ZSH_POWERLINE="${ZSH_POWERLINE:-1}" ZSH_POWERLINE="${ZSH_POWERLINE:-1}"
ZSH_PRINT_REBOOT_REQUIRED=${ZSH_PRINT_REBOOT_REQUIRED:-0} # hacky, see below ZSH_PRINT_REBOOT_REQUIRED=${ZSH_PRINT_REBOOT_REQUIRED:-0} # hacky, see below
@ -186,6 +187,14 @@ if [ $ZSH_GPG_PINENTRY_FIX -gt 0 ]; then
fi fi
section_end section_end
# logo-ls
section "logo-ls"
if [ $ZSH_LOGO_LS -gt 0 ]; then
log "Aliasing ls to logo-ls"
alias ls=logo-ls
fi
section_end
# sugar to easily connect to remote docker hosts through SSH # sugar to easily connect to remote docker hosts through SSH
section "ssh-based remote docker access" section "ssh-based remote docker access"
ssh_docker() { ssh_docker() {

View File

@ -111,7 +111,8 @@ if has_tags pm:pacman; then
# from here on we should have yay available # from here on we should have yay available
yay_install \ yay_install \
zsh \ zsh \
zsh-syntax-highlighting zsh-syntax-highlighting \
logo-ls
if has_tags desktop; then if has_tags desktop; then
yay_install \ yay_install \