added eza

This commit is contained in:
2024-06-25 19:52:15 +10:00
parent 6c7993ec90
commit 4c230daf48
2 changed files with 18 additions and 2 deletions

View File

@@ -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

17
.zshrc
View File

@@ -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"