feat(main): added eza support

This commit is contained in:
Paul Fey 2025-05-31 09:48:30 +02:00
parent 874cd6e181
commit e457f8d2ac
2 changed files with 15 additions and 1 deletions

View file

@ -20,3 +20,8 @@ SHOW_PFETCH=1
#
USE_FZF=1
#
## Whether to use eza instead of ls. Only works when eza is installed
## Possible values: 0 (disabled), 1 (enabled, default)
#
USE_EZA=1
#

11
main
View file

@ -166,7 +166,10 @@ then
fi
#
# set the correct editor
if command -v nvim &> /dev/null
if command -v hx &> /dev/null
then
export EDITOR="hx"
elif command -v nvim &> /dev/null
then
export EDITOR="nvim"
elif command -v vim &> /dev/null
@ -180,6 +183,12 @@ fi
# Alias la to ls -la
alias la="ls -la"
#
# Alias ls to eza
if [ "${USE_EZA}" = "1" ] && command -v eza &> /dev/null
then
alias ls="eza"
fi
#
# Enable emacs keybindings
bindkey -e
#