Created
February 9, 2025 17:30
-
-
Save sdd/ee6a10125db191c52ed27178a39e13a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
### Added by Zinit's installer | |
# if zinit is not found, install it via git clone | |
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then | |
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f" | |
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit" | |
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \ | |
print -P "%F{33} %F{34}Installation successful.%f%b" || \ | |
print -P "%F{160} The clone has failed.%f%b" | |
fi | |
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh" | |
autoload -Uz _zinit | |
(( ${+_comps} )) && _comps[zinit]=_zinit | |
# Load a few important annexes, without Turbo | |
# (this is currently required for annexes) | |
zinit light-mode for \ | |
zdharma-continuum/zinit-annex-as-monitor \ | |
zdharma-continuum/zinit-annex-bin-gem-node \ | |
zdharma-continuum/zinit-annex-patch-dl \ | |
zdharma-continuum/zinit-annex-rust | |
### End of Zinit's installer chunk | |
zinit ice depth=1; zinit load romkatv/powerlevel10k | |
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh | |
#zinit wait lucid for \ | |
# atinit"ZINIT[COMPINIT_OPTS]=-C; zicompinit; zicdreplay" \ | |
# zdharma-continuum/fast-syntax-hightlighting \ | |
# blockf \ | |
# zsh-users/zsh-completions \ | |
# atload"!_zsh_autosuggest_start" \ | |
# zsh-users/zsh-autosuggestions | |
# | |
zi for \ | |
from'gh-r' \ | |
sbin'* -> jq' \ | |
nocompile \ | |
@jqlang/jq | |
zinit load zdharma-continuum/fast-syntax-highlighting | |
zinit load zsh-users/zsh-completions | |
zinit load zsh-users/zsh-autosuggestions | |
zinit load zdharma-continuum/history-search-multi-word | |
zinit load zdharma-continuum/zsh-diff-so-fancy | |
zinit pack for fzf ls_colors | |
#zinit load zdharma-continuum/zsh-navigation-tools | |
# mostly just for ../.../...., but adds other stuff i dont want | |
zinit snippet OMZL::directories.zsh | |
zinit ice from'gh-r' as'program' mv'bat* bat' sbin'**/bat(.exe|) -> bat' | |
zinit light @sharkdp/bat | |
zinit ice rustup cargo'!eza' | |
zi load zdharma-continuum/null | |
zinit snippet OMZL::completion.zsh | |
zinit snippet OMZL::functions.zsh | |
zinit snippet OMZL::history.zsh | |
zinit snippet OMZL::grep.zsh | |
zinit snippet OMZP::git | |
zinit ice wait lucid as'program' from'gh-r' sbin'**/delta -> delta' | |
zinit light dandavison/delta | |
zinit load MenkeTechnologies/zsh-cargo-completion | |
autoload -Uz compinit && compinit | |
eval "$(fnm env --use-on-cd)" | |
eval "$(direnv hook zsh)" | |
# needed for uv (python tool, docs.astral.sh/uv/) | |
. "$HOME/.local/bin/env" | |
alias glg="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short" | |
alias glom="ggl" | |
alias l="eza" | |
alias ll="eza -lag --git --icons" | |
#keep as the last one | |
zinit load djui/alias-tips | |
export PATH="/opt/homebrew/opt/llvm/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment