mirror of
https://github.com/tedkulp/dotfiles
synced 2026-03-05 13:40:18 -05:00
changes
This commit is contained in:
@@ -1,13 +1,45 @@
|
|||||||
zpcompdef _eza ls ll llm la lam laa lx lxa lS llt llta
|
# ls variants
|
||||||
|
ls() { eza --icons -G "$@" }
|
||||||
|
zstyle ':completion:ls:*' description 'eza (icons, color)'
|
||||||
|
|
||||||
alias ls="eza --icons -G"
|
lm() { ls --sort=modified "$@" }
|
||||||
alias ll="eza -lbF --icons --git"
|
zstyle ':completion:lm:*' description 'ls sorted by modified time'
|
||||||
alias llm="ll --sort=modified"
|
|
||||||
alias la="eza -lbhHigUmuSa --icons --git --color-scale --time-style=long-iso"
|
la() { ls -a "$@" }
|
||||||
alias lam="la --sort=modified"
|
zstyle ':completion:la:*' description 'ls all (hidden files)'
|
||||||
alias laa="eza -lbhHigUmuSaa --icons --git --color-scale --time-style=long-iso"
|
|
||||||
alias lx="eza -lbhHigUmuSa@ --icons --git --color-scale --time-style=long-iso"
|
lam() { la --sort=modified "$@" }
|
||||||
alias lxa="eza -lbhHigUmuSa@a --icons --git --color-scale --time-style=long-iso"
|
zstyle ':completion:lam:*' description 'ls all sorted by modified time'
|
||||||
alias lS="eza -1"
|
|
||||||
alias llt="eza -1 --icons --tree --git"
|
# ll variants
|
||||||
alias llta="eza -1 --icons --tree --git --all"
|
ll() { eza -lbhHigUmuS --icons --git --color-scale --time-style=long-iso "$@" }
|
||||||
|
zstyle ':completion:ll:*' description 'eza long listing (git, color-scale, long time)'
|
||||||
|
|
||||||
|
llm() { ll --sort=modified "$@" }
|
||||||
|
zstyle ':completion:llm:*' description 'll sorted by modified time'
|
||||||
|
|
||||||
|
lla() { ll --all "$@" }
|
||||||
|
zstyle ':completion:lla:*' description 'll all (hidden files)'
|
||||||
|
|
||||||
|
llam() { lla --sort=modified "$@" }
|
||||||
|
zstyle ':completion:llam:*' description 'll all sorted by modified time'
|
||||||
|
|
||||||
|
# laa, lx, lxa
|
||||||
|
llaa() { lla --all "$@" }
|
||||||
|
zstyle ':completion:laa:*' description 'eza long listing (extra mode aa)'
|
||||||
|
|
||||||
|
llx() { ll -@ "$@" }
|
||||||
|
zstyle ':completion:lx:*' description 'eza long listing with extended attributes'
|
||||||
|
|
||||||
|
llxa() { llx --all "$@" }
|
||||||
|
zstyle ':completion:lxa:*' description 'eza long listing with extended attributes (all)'
|
||||||
|
|
||||||
|
# misc
|
||||||
|
lS() { eza -1 "$@" }
|
||||||
|
zstyle ':completion:lS:*' description 'eza single column'
|
||||||
|
|
||||||
|
llt() { eza -1 --icons --tree --git "$@" }
|
||||||
|
zstyle ':completion:llt:*' description 'eza tree view'
|
||||||
|
|
||||||
|
llta() { llt --all "$@" }
|
||||||
|
zstyle ':completion:llta:*' description 'eza tree view with all files'
|
||||||
|
|||||||
15
.zshrc
15
.zshrc
@@ -3,6 +3,10 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
|||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${ZSH_DEBUGRC+1}" ]; then
|
||||||
|
zmodload zsh/zprof
|
||||||
|
fi
|
||||||
|
|
||||||
# 2. Load Zinit
|
# 2. Load Zinit
|
||||||
source "${HOME}/.local/share/zinit/zinit.git/zinit.zsh"
|
source "${HOME}/.local/share/zinit/zinit.git/zinit.zsh"
|
||||||
|
|
||||||
@@ -29,8 +33,10 @@ zinit light wintermi/zsh-brew
|
|||||||
zinit ice wait lucid blockf
|
zinit ice wait lucid blockf
|
||||||
zinit snippet OMZP::asdf/asdf.plugin.zsh
|
zinit snippet OMZP::asdf/asdf.plugin.zsh
|
||||||
|
|
||||||
|
export ATUIN_NOBIND="true"
|
||||||
zinit ice wait lucid blockf
|
zinit ice wait lucid blockf
|
||||||
zinit light atuinsh/atuin
|
zinit light atuinsh/atuin
|
||||||
|
bindkey '^r' atuin-search
|
||||||
|
|
||||||
zinit wait lucid for MichaelAquilina/zsh-autoswitch-virtualenv
|
zinit wait lucid for MichaelAquilina/zsh-autoswitch-virtualenv
|
||||||
|
|
||||||
@@ -40,6 +46,11 @@ zinit light ajeetdsouza/zoxide
|
|||||||
# fzf-tab — defer after other interactive tools
|
# fzf-tab — defer after other interactive tools
|
||||||
zinit ice wait lucid blockf
|
zinit ice wait lucid blockf
|
||||||
zinit light Aloxaf/fzf-tab
|
zinit light Aloxaf/fzf-tab
|
||||||
|
zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup
|
||||||
|
zstyle ':fzf-tab:*' popup-min-size 200 8
|
||||||
|
|
||||||
|
zinit ice wait lucid blockf
|
||||||
|
zinit light Freed-Wu/fzf-tab-source
|
||||||
|
|
||||||
# direnv — from GitHub releases
|
# direnv — from GitHub releases
|
||||||
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
|
zinit from"gh-r" as"program" mv"direnv* -> direnv" \
|
||||||
@@ -71,3 +82,7 @@ function timezsh() {
|
|||||||
for i in {1..5}; do /usr/bin/time -p zsh -i -c exit; done
|
for i in {1..5}; do /usr/bin/time -p zsh -i -c exit; done
|
||||||
}
|
}
|
||||||
### End of Zinit's installer chunk
|
### End of Zinit's installer chunk
|
||||||
|
|
||||||
|
if [ -n "${ZSH_DEBUGRC+1}" ]; then
|
||||||
|
zprof
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user