added eza
This commit is contained in:
@@ -701,7 +701,8 @@ image_backend="ascii"
|
|||||||
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
|
# 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
|
# In ascii mode, distro ascii art will be used and in an image mode, your
|
||||||
# wallpaper will be used.
|
# wallpaper will be used.
|
||||||
image_source="$HOME/.config/neofetch/ascii"
|
#image_source="$HOME/.config/neofetch/ascii"
|
||||||
|
image_source="auto"
|
||||||
|
|
||||||
|
|
||||||
# Ascii Options
|
# Ascii Options
|
||||||
|
|||||||
17
.zshrc
17
.zshrc
@@ -16,7 +16,7 @@ export EDITOR=nvim
|
|||||||
|
|
||||||
alias cp='cp --reflink=auto'
|
alias cp='cp --reflink=auto'
|
||||||
alias grep='grep --color=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
|
alias cat=bat
|
||||||
export BAT_THEME="Catppuccin Mocha"
|
export BAT_THEME="Catppuccin Mocha"
|
||||||
alias vim=nvim
|
alias vim=nvim
|
||||||
@@ -40,6 +40,21 @@ _fzf_compgen_dir() {
|
|||||||
fd --type=d --hidden --exclude .git . "$1"
|
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)"
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
|
||||||
export STARSHIP_CONFIG="$HOME/.config/starship/config.toml"
|
export STARSHIP_CONFIG="$HOME/.config/starship/config.toml"
|
||||||
|
|||||||
Reference in New Issue
Block a user