fastfetch # 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 # Created by newuser for 5.9 # zsh settigns # my alliases are in ~/.profile so this just sources it [[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile' # enable vi mode bindkey -v fpath+=~/.zsh export PATH="$PATH:$HOME/.dotnet/tools" source <(copilot completion zsh) export HISTSIZE=10000 export SAVEHIST=10000 _dotnet_zsh_complete() { local completions=("$(dotnet complete "$words")") # If the completion list is empty, just continue with filename selection if [ -z "$completions" ] then _arguments '*::arguments: _normal' return fi # This is not a variable assignment, don't remove spaces! _values = "${(ps:\n:)completions}" } # useful plugins source ~/.zsh/zsh-autocomplete/zsh-autocomplete.plugin.zsh source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh compdef _dotnet_zsh_complete dotnet source <(fzf --zsh) # aws cli completion for zsh autoload bashcompinit && bashcompinit complete -C '/usr/local/bin/aws_completer' aws eval "$(register-python-argcomplete pipx)" # pnpm export PNPM_HOME="/home/themystery/.local/share/pnpm" case ":$PATH:" in *":$PNPM_HOME:"*) ;; *) export PATH="$PNPM_HOME:$PATH" ;; esac # pnpm end # add Pulumi to the PATH export PATH=$PATH:$HOME/.pulumi/bin export PATH=$PATH:/home/themystery/.spicetify source ~/.zsh/powerlevel10k/powerlevel10k.zsh-theme # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh export PATH="$HOME/go/bin:$PATH" # bun completions [ -s "/home/themystery/.bun/_bun" ] && source "/home/themystery/.bun/_bun" # opam source [[ ! -r /home/themystery/.opam/opam-init/init.zsh ]] || source /home/themystery/.opam/opam-init/init.zsh > /dev/null 2> /dev/null # bun export BUN_INSTALL="$HOME/.bun" export PATH="$BUN_INSTALL/bin:$PATH" export FP='fzf --preview="bat --style=numbers --color=always --line-range :500 {}"' export PATH="$HOME/neovim/bin:$PATH"