Last active
December 3, 2023 20:09
-
-
Save Theigrams/0478d3e7ec58caee430936f75dfd3da3 to your computer and use it in GitHub Desktop.
Zshrc Configuration File
This file contains hidden or 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 | |
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # alias python="/Users/theigrams/miniforge3/bin/python" | |
| # >>> conda initialize >>> | |
| # !! Contents within this block are managed by 'conda init' !! | |
| __conda_setup="$('/Users/theigrams/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" | |
| if [ $? -eq 0 ]; then | |
| eval "$__conda_setup" | |
| else | |
| if [ -f "/Users/theigrams/miniforge3/etc/profile.d/conda.sh" ]; then | |
| . "/Users/theigrams/miniforge3/etc/profile.d/conda.sh" | |
| else | |
| export PATH="/Users/theigrams/miniforge3/bin:$PATH" | |
| fi | |
| fi | |
| unset __conda_setup | |
| # <<< conda initialize <<< | |
| export PATH="/opt/homebrew/opt/ruby/bin:$PATH" | |
| export PATH="/opt/homebrew/lib/ruby/gems/3.0.0/bin:$PATH" | |
| export PATH="$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH" | |
| export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH" | |
| export PATH="/Applications/CLion.app/Contents/bin/cmake/mac/bin:$PATH" | |
| export PATH="/Applications/MATLAB_R2023b.app/bin:$PATH" | |
| export DISABLE_AUTO_UPDATE=true | |
| export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH" | |
| if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then | |
| ##### WHAT YOU WANT TO DISABLE FOR WARP - BELOW | |
| test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" | |
| ##### WHAT YOU WANT TO DISABLE FOR WARP - ABOVE | |
| fi | |
| setopt no_nomatch | |
| # export NVM_DIR="$HOME/.nvm" | |
| # [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
| # [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
| ### Added by Zinit's installer | |
| 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 light romkatv/powerlevel10k | |
| zinit light zsh-users/zsh-completions | |
| zinit wait lucid light-mode for \ | |
| atinit"zicompinit; zicdreplay" \ | |
| zdharma-continuum/fast-syntax-highlighting \ | |
| atload"_zsh_autosuggest_start" \ | |
| zsh-users/zsh-autosuggestions | |
| # zinit light sunlei/zsh-ssh | |
| zinit light ael-code/zsh-colored-man-pages | |
| zinit light MichaelAquilina/zsh-you-should-use | |
| zinit light DarrinTisdale/zsh-aliases-exa | |
| zinit ice wait lucid for \ | |
| ~/.config/zsh/load_nvm.sh | |
| # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
| [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment