dotfiles/dot_zshrc.tmpl

75 lines
2.4 KiB
Cheetah
Raw Normal View History

2024-06-05 11:03:18 +02:00
## 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
2024-06-05 11:08:00 +02:00
{{ if eq .chezmoi.os "darwin" -}}
2024-06-05 11:03:18 +02:00
# Add brew shell completions
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
2024-06-05 11:08:00 +02:00
{{ end -}}
2024-06-05 11:03:18 +02:00
# 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
2024-06-07 00:37:02 +02:00
export PATH="$HOME/.local/bin:$PATH"
2024-06-05 11:03:18 +02:00
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'
2024-06-07 00:57:49 +02:00
alias bwu="export BW_SESSION=\$(bw unlock --raw)"
2024-06-05 11:03:18 +02:00
export NODE_OPTIONS="--no-deprecation"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
2024-06-05 11:08:00 +02:00
{{ if eq .chezmoi.os "darwin" -}}
2024-06-05 11:03:18 +02:00
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
2024-06-05 11:08:00 +02:00
{{ end -}}
2024-06-05 11:03:18 +02:00