diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index 1d41791..96d2c7c 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -1,9 +1,9 @@ # ls: make `ls` group directories first if supported. # lsc: force `ls` to use color output (e.g. for piping into `less`). -if command -v exa >/dev/null 2>&1; then - # Prefer exa if installed +if command -v eza >/dev/null 2>&1; then + # Prefer eza if installed alias \ - ls="exa --classify --group-directories-first --group --links" \ + ls="eza --classify --group-directories-first --group --links" \ la="ls --all" \ lt="ls --long --tree --ignore-glob='.git'" \ lta="lt --all" \ diff --git a/debian.sh b/debian.sh index d503f8a..1557df1 100755 --- a/debian.sh +++ b/debian.sh @@ -7,6 +7,7 @@ DOTFILES_URL="https://github.com/fschauen/dotfiles.git" NEOVIM_VERSION="0.9.1" GIT_DELTA_VERSION="0.16.5" LF_VERSION="r30" +EZA_VERSION="0.18.5" STOW_DIR="/usr/local/stow" @@ -180,6 +181,21 @@ install_lf() { fi } +install_eza() { + eza_url="http://deb.gierens.de/pool/main/e/eza/eza_${EZA_VERSION}_amd64.deb" + eza_deb="eza_${EZA_VERSION}_amd64.deb" + eza_bin="/usr/bin/eza" + + if [ -f "${eza_bin}" ]; then + skipped "${eza_bin} exists" + elif ! download "${eza_url}" "${eza_deb}"; then + skipped "${eza_deb} not available and failed to download ${eza_url}" + else + $cmd dpkg -i "${eza_deb}" + $cmd rm -vf "${eza_deb}" + fi +} + user_setup() { if user_exists "$1"; then echo "User $1 exists. Updating..." @@ -259,6 +275,9 @@ execute() { heading "Install lf v$LF_VERSION" install_lf + heading "Install exa v$EZA_VERSION" + install_eza + heading "Setup user: $USERNAME" user_setup "$USERNAME"