chore(shell): remove eza

Drop the ls/tree eza aliases, swap the two fzf directory previews to a
portable 'ls -la', and delete the install-eza installer.
This commit is contained in:
2026-06-26 07:40:26 -07:00
parent 262a59b8b2
commit ae1f13a8a3
2 changed files with 2 additions and 21 deletions
+2 -4
View File
@@ -69,9 +69,7 @@ zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup
# aliases
alias ls='eza'
alias cat='bat'
alias tree='eza --tree'
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
@@ -90,13 +88,13 @@ _fzf_compgen_dir() {
source ~/fzf-git.sh/fzf-git.sh
export FZF_CTRL_T_OPTS="--preview 'bat -n --color=always --line-range :500 {}'"
export FZF_ALT_C_OPTS="--preview 'eza --tree --color=always {} | head -200'"
export FZF_ALT_C_OPTS="--preview 'ls -la {} | head -200'"
_fzf_comprun() {
local command=$1
shift
case "$command" in
cd) fzf --preview 'eza --tree --color=always {} | head -200' "$@" ;;
cd) fzf --preview 'ls -la {} | head -200' "$@" ;;
export|unset) fzf --preview "eval 'echo \$' {}" "$@" ;;
ssh) fzf --preview 'dig {}' "$@" ;;
*) fzf --preview 'bat -n --color=always --line-range :500 {}' "$@" ;;
-17
View File
@@ -1,17 +0,0 @@
#!/bin/bash
# Check if Eza is installed
if dpkg-query -Wf'${db:Status-abbrev}' eza; then
sudo apt install -y eza
else
sudo apt update
sudo apt install gpg
sudo mkdir -p /etc/apt/keyrings
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo gpg --dearmor -o /etc/apt/keyrings/gierens.gpg
echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list
sudo chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list
sudo apt update
sudo apt install -y eza
fi