From 580e92566a3c99eb43f41244f61e17026e3e2b31 Mon Sep 17 00:00:00 2001 From: Florian Beisel Date: Wed, 5 Jun 2024 11:03:18 +0200 Subject: [PATCH] Add .zshrc --- dot_zshrc | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 dot_zshrc diff --git a/dot_zshrc b/dot_zshrc new file mode 100644 index 0000000..a18edf8 --- /dev/null +++ b/dot_zshrc @@ -0,0 +1,67 @@ +## 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 + +# Add brew shell completions +FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}" + +# add thefuck alias +eval $(thefuck --alias) + +# If you come from bash you might have to change your $PATH. +# export PATH=$HOME/bin:/usr/local/bin:$PATH +export PATH="$HOME/.asdf/shims:$PATH" + +# Path to your oh-my-zsh installation. +export ZSH="$HOME/.oh-my-zsh" + +zstyle ':omz:plugins:eza' 'dirs-first' yes +zstyle ':omz:plugins:eza' 'git-status' yes + +# Set name of the theme to load +ZSH_THEME="powerlevel10k/powerlevel10k" + +# Uncomment the following line if pasting URLs and other text is messed up. +# DISABLE_MAGIC_FUNCTIONS="true" + +# Uncomment the following line to disable colors in ls. +# DISABLE_LS_COLORS="true" + +# Uncomment the following line to disable auto-setting terminal title. +# DISABLE_AUTO_TITLE="true" + +# Uncomment the following line to enable command auto-correction. +# ENABLE_CORRECTION="true" + +# Uncomment the following line if you want to disable marking untracked files +# under VCS as dirty. This makes repository status check for large repositories +# much, much faster. +# DISABLE_UNTRACKED_FILES_DIRTY="true" + +# Which plugins would you like to load? +plugins=(git eza aliases aws autojump zsh-autosuggestions asdf) + +source $ZSH/oh-my-zsh.sh + +# User configuration + +# Set personal aliases, overriding those provided by oh-my-zsh libs, +# plugins, and themes. Aliases can be placed here, though oh-my-zsh +# users are encouraged to define aliases within the ZSH_CUSTOM folder. +# For a full list of active aliases, run `alias`. +# +# Example aliases +# alias zshconfig="mate ~/.zshrc" +# alias ohmyzsh="mate ~/.oh-my-zsh" + +alias bw='NODE_OPTIONS="--no-deprecation" bw' +export NODE_OPTIONS="--no-deprecation" + +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh +