lsd -> eza

This commit is contained in:
Daylin Morgan 2024-06-11 12:19:33 -05:00
parent 44d128df4a
commit dd3ddd9d81
Signed by: daylin
GPG key ID: 950D13E9719334AD
6 changed files with 20 additions and 16 deletions

View file

@ -3,6 +3,7 @@ alias zdot='cd ${ZDOTDIR:-~}'
alias dots='cd ${DOTFILES_DIR:-~/.dotfiles}' alias dots='cd ${DOTFILES_DIR:-~/.dotfiles}'
alias dots-drop='chezmoi forget --interactive $(chezmoi managed -p absolute | fzf -m)' alias dots-drop='chezmoi forget --interactive $(chezmoi managed -p absolute | fzf -m)'
# alias dots-add='chezmoi re-add --interactive' # alias dots-add='chezmoi re-add --interactive'
function dots-add { function dots-add {
chezmoi add $(chezmoi status | grep '^MM' | awk -v home="$HOME/" '{print home$2}' | fzf -m) chezmoi add $(chezmoi status | grep '^MM' | awk -v home="$HOME/" '{print home$2}' | fzf -m)
} }

View file

@ -11,14 +11,4 @@ setopt NO_HIST_BEEP # Be quiet!
MAGIC_ENTER_GIT_COMMAND="$MAGIC_ENTER_OTHER_COMMAND && git status -sb" MAGIC_ENTER_GIT_COMMAND="$MAGIC_ENTER_OTHER_COMMAND && git status -sb"
MAGIC_ENTER_OTHER_COMMAND="ls -l ." MAGIC_ENTER_OTHER_COMMAND="ls -l ."
# let make handle it's own shell completion
zstyle ':completion::complete:make:*:targets' call-command true
# fzf-tab completions
# set descriptions format to enable group support
zstyle ':completion:*:descriptions' format '[%d]'
# set list-colors to enable filename colorizing
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'lsd --tree --depth 2 --color always $realpath'

View file

@ -19,7 +19,7 @@ junegunn/fzf path:shell/key-bindings.zsh
wfxr/forgit wfxr/forgit
# prompt # prompt
romkatv/powerlevel10k kind:fpath # romkatv/powerlevel10k kind:fpath
${ZDOTDIR}/plugins/prompt ${ZDOTDIR}/plugins/prompt
# start compinit before # start compinit before
@ -31,5 +31,6 @@ mattmc3/zephyr path:plugins/confd
${ZDOTDIR}/plugins/zexists ${ZDOTDIR}/plugins/zexists
# deferred # deferred
zsh-users/zsh-autosuggestions
zdharma-continuum/fast-syntax-highlighting kind:defer zdharma-continuum/fast-syntax-highlighting kind:defer
Aloxaf/fzf-tab kind:defer Aloxaf/fzf-tab kind:defer

View file

@ -7,3 +7,17 @@ zstyle ':antidote:plugin:*' defer-options '-p'
# Set this to whatever you want to use to edit a command # Set this to whatever you want to use to edit a command
zstyle :zle:edit-command-line editor vim zstyle :zle:edit-command-line editor vim
# let make handle it's own shell completion
zstyle ':completion::complete:make:*:targets' call-command true
# fzf-tab completions
# set descriptions format to enable group support
zstyle ':completion:*:descriptions' format '[%d]'
# set list-colors to enable filename colorizing
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
if (( $+commands[eza] )); then
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza --tree --level 2 --color always --icons always $realpath'
fi

View file

@ -6,9 +6,7 @@ function source-zshcmdd {
# glob search for the zshcmd.d dir # glob search for the zshcmd.d dir
local -a zshcmdd=() local -a zshcmdd=()
[[ -n "$ZSHCMDD" ]] && zshcmdd+=($ZSHCMDD(N)) [[ -n "$ZSHCMDD" ]] && zshcmdd+=($ZSHCMDD(N))
[[ -n "$ZDOTDIR" ]] && zshcmdd+=( [[ -n "$ZDOTDIR" ]] && zshcmdd+=($ZDOTDIR/exists.d/cmd(N))
$ZDOTDIR/exists.d/cmd(N)
)
zshcmdd+=(${ZDOTDIR:-$HOME}/zexists.d/cmd(N)) zshcmdd+=(${ZDOTDIR:-$HOME}/zexists.d/cmd(N))
if ! (( $#zshcmdd )); then if ! (( $#zshcmdd )); then

View file

@ -1,7 +1,7 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
if is-exe lsd; then if (( $+commands[eza] )); then
export _ZO_FZF_OPTS="--preview 'command lsd --tree --color always --icon always {2..}'" export _ZO_FZF_OPTS="--preview 'command eza --tree --icons=always --color=always {2..}'"
fi fi
eval "$(zoxide init zsh --cmd cd)" eval "$(zoxide init zsh --cmd cd)"