-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
96 lines (75 loc) · 2.36 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Default config path
export XDG_CONFIG_HOME="/Users/theimer/.config"
# Path to dotfiles
export DOTFILES=$HOME/.dotfiles
export OBSIDIAN="${HOME}/Library/Mobile\ Documents/iCloud\~md\~obsidian/Documents/obsidian"
# PATH definition
export PATH="/opt/homebrew/bin:$PATH"
export PATH="/opt/homebrew/sbin:$PATH"
export PATH="$PATH:$HOME/.composer/vendor/bin"
export PATH="./vendor/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/share/nvim/mason/bin:$PATH"
# Neovide settings
export NEOVIDE_FRAME=transparent
export NEOVIDE_TITLE_HIDDEN=0
export NEOVIDE_TABS=0
export NEOVIDE_FORK=1
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set date format
HIST_STAMPS="dd.mm.yyyy"
# Plugins definition
plugins=(1password copypath fzf git zsh-autosuggestions zsh-completions zsh-syntax-highlighting)
# OMZ settings
zstyle ':omz:update' mode auto
source $ZSH/oh-my-zsh.sh
# Welcome screen
# nerdfetch
# Set language environment
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='nvim'
fi
# FZF
source <(fzf --zsh)
# Catpuccin FZF Theme
# export FZF_DEFAULT_OPTS=" \
# --color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \
# --color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \
# --color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8"
# Rose Pine FZF Theme
export FZF_DEFAULT_OPTS="
--color=fg:#908caa,bg:#191724,hl:#ebbcba
--color=fg+:#e0def4,bg+:#26233a,hl+:#ebbcba
--color=border:#403d52,header:#31748f,gutter:#191724
--color=spinner:#f6c177,info:#9ccfd8
--color=pointer:#c4a7e7,marker:#eb6f92,prompt:#908caa"
# Source env secrets
op inject --in-file "${DOTFILES}/secrets.zsh" | while read -r line; do
eval "$line"
done
# Source aliases
source $DOTFILES/aliases.zsh
source $DOTFILES/aliases-docker.zsh
# Source commands
source $DOTFILES/commands.zsh
# Pyenv
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
# Ripgrep
export RIPGREP_CONFIG_PATH="~/.config/.ripgreprc"
# Carapace
export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense'
zstyle ':completion:*' format $'\e[2;37mCompleting %d\e[m'
source <(carapace _carapace)
# Zoxide
eval "$(zoxide init zsh)"
# Starship
eval "$(starship init zsh)"