From 4c230daf48768cf6be4f0aea2d546d6b4ab53d6d Mon Sep 17 00:00:00 2001 From: Haelnorr Date: Tue, 25 Jun 2024 19:52:15 +1000 Subject: [PATCH] added eza --- .config/neofetch/config.conf | 3 ++- .zshrc | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.config/neofetch/config.conf b/.config/neofetch/config.conf index ed59e7a..f6fd47e 100644 --- a/.config/neofetch/config.conf +++ b/.config/neofetch/config.conf @@ -701,7 +701,8 @@ image_backend="ascii" # NOTE: 'auto' will pick the best image source for whatever image backend is used. # In ascii mode, distro ascii art will be used and in an image mode, your # wallpaper will be used. -image_source="$HOME/.config/neofetch/ascii" +#image_source="$HOME/.config/neofetch/ascii" +image_source="auto" # Ascii Options diff --git a/.zshrc b/.zshrc index 9b17566..2ef0dc2 100644 --- a/.zshrc +++ b/.zshrc @@ -16,7 +16,7 @@ export EDITOR=nvim alias cp='cp --reflink=auto' alias grep='grep --color=auto' -alias ls='ls --color=auto --file-type' +alias ls='eza --color=always --long --git --icons=always --no-time --no-user --no-permissions' alias cat=bat export BAT_THEME="Catppuccin Mocha" alias vim=nvim @@ -40,6 +40,21 @@ _fzf_compgen_dir() { fd --type=d --hidden --exclude .git . "$1" } +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'" + +_fzf_comprun() { + local command=$1 + shift + + case "$command" in + cd) fzf --preview 'eza --tree --color=always {} | head -200' "$@" ;; + export|unset) fzf --preview "eval 'echo $'{}" "$@" ;; + ssh) fzf --preview 'dig {}' "$@" ;; + *) fzf --preview 'bat -n --color=always --line-range :500 {}' "$@" ;; + esac +} + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" export STARSHIP_CONFIG="$HOME/.config/starship/config.toml"