Repository navigation
Expand file tree
/
Copy pathdot_zshrc
More file actions
55 lines (49 loc) · 1.66 KB
/
Copy pathdot_zshrc
File metadata and controls
55 lines (49 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
if [[ -n "${_ZSHRC_ALREADY_LOADED:-}" ]]; then
return
fi
typeset -g _ZSHRC_ALREADY_LOADED=1
## [Completion]
## Completion scripts setup. Remove the following line to uninstall
[[ -f /Users/dididi/.dart-cli-completion/zsh-config.zsh ]] && . /Users/dididi/.dart-cli-completion/zsh-config.zsh || true
## [/Completion]
if command -v navi >/dev/null 2>&1; then
eval "$(navi widget zsh)"
fi
if command -v starship >/dev/null 2>&1; then
eval "$(starship init zsh)"
fi
if command -v atuin >/dev/null 2>&1; then
eval "$(atuin init zsh)"
fi
alias ls="lsd"
alias l="ls -l"
alias la="ls -a"
alias lla="ls -la"
alias lt="ls --tree"
alias cat="bat --paging=never -p"
alias rm="trash"
alias ps="procs"
alias du="dust"
alias top="btm"
alias diff="delta"
alias network="bandwhich"
#alias gcloud="env MISE_PYTHON_VERSION=3.12.4 gcloud"
alias npm_legacy="command npm"
alias npm="pnpm"
alias npx_legacy="command npx"
alias npx="pnpx"
alias http="xh"
# Note: ~/.local/bin is already on PATH via ~/.shell_env (sourced from ~/.zshenv),
# placed *behind* mise's shims. Do not re-prepend it here — that would shadow
# mise-managed tools with system versions.
# Activate mise AFTER macOS path_helper (/etc/zprofile) and every other PATH
# edit, so mise-managed tools take precedence in interactive login shells.
# (.shell_env activates mise with --shims for non-interactive shells, but on
# login path_helper reorders PATH afterwards and pushes system dirs to the front.)
if command -v mise >/dev/null 2>&1; then
eval "$(mise activate zsh)"
fi
# zoxide — must be initialized at the very end of the config (replaces `cd`)
if command -v zoxide >/dev/null 2>&1; then
eval "$(zoxide init --cmd cd zsh)"
fi