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:
+2
-4
@@ -69,9 +69,7 @@ zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
|
|||||||
zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup
|
zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup
|
||||||
|
|
||||||
# aliases
|
# aliases
|
||||||
alias ls='eza'
|
|
||||||
alias cat='bat'
|
alias cat='bat'
|
||||||
alias tree='eza --tree'
|
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
@@ -90,13 +88,13 @@ _fzf_compgen_dir() {
|
|||||||
source ~/fzf-git.sh/fzf-git.sh
|
source ~/fzf-git.sh/fzf-git.sh
|
||||||
|
|
||||||
export FZF_CTRL_T_OPTS="--preview 'bat -n --color=always --line-range :500 {}'"
|
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() {
|
_fzf_comprun() {
|
||||||
local command=$1
|
local command=$1
|
||||||
shift
|
shift
|
||||||
case "$command" in
|
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 \$' {}" "$@" ;;
|
export|unset) fzf --preview "eval 'echo \$' {}" "$@" ;;
|
||||||
ssh) fzf --preview 'dig {}' "$@" ;;
|
ssh) fzf --preview 'dig {}' "$@" ;;
|
||||||
*) fzf --preview 'bat -n --color=always --line-range :500 {}' "$@" ;;
|
*) fzf --preview 'bat -n --color=always --line-range :500 {}' "$@" ;;
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user