-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
81 lines (61 loc) · 2.18 KB
/
zshrc
File metadata and controls
81 lines (61 loc) · 2.18 KB
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
# 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
# History
HISTFILE=~/.zsh_history
HISTSIZE=1000000
SAVEHIST=1000000
setopt INC_APPEND_HISTORY
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLANKS
setopt HIST_VERIFY
# Directory navigation
setopt AUTO_CD
setopt AUTO_PUSHD
setopt PUSHD_IGNORE_DUPS
# load zgenom
source "${HOME}/.zgenom/zgenom.zsh"
# Check for plugin and zgenom updates every 7 days
# This does not increase the startup time.
# (Run `zgenom update` to manually update.)
zgenom autoupdate
# if the init script doesn't exist
if ! zgenom saved; then
# specify plugins here
zgenom load romkatv/powerlevel10k powerlevel10k
zgenom load zsh-users/zsh-autosuggestions
zgenom load zsh-users/zsh-syntax-highlighting
zgenom load softmoth/zsh-vim-mode
# generate the init script from plugins above
zgenom save
fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# For building Kudu
export PKG_CONFIG_PATH="$(brew --prefix openssl@1.1)/lib/pkgconfig:$PKG_CONFIG_PATH"
####################################################
# PATH
####################################################
# Add Homebrew
export PATH=/opt/homebrew/opt/ccache/libexec:$PATH
# Add rustup stable toolchain instead of homebrew rust to the path
#export PATH=/opt/homebrew/opt/rust/bin:$PATH
export PATH=$HOME/.rustup/toolchains/stable-aarch64-apple-darwin/bin:$PATH
# Add "go install" GOPATH/bin/
export PATH=$HOME/go/bin:$PATH
# ~/bin
export PATH=$HOME/bin:$PATH
# Added by Windsurf
#export PATH="/Users/mpercy/.codeium/windsurf/bin:$PATH"
# Ensure we start in home directory
# Some zgenom plugins mess up cwd
cd "$HOME"
alias ll="ls -al"
alias chrome="open -a 'Google Chrome'"
# Added by LM Studio CLI (lms)
export PATH="$PATH:/Users/mpercy/.lmstudio/bin"
# End of LM Studio CLI section