-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathprivate_executable_dot_zshrc
83 lines (65 loc) · 1.94 KB
/
private_executable_dot_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
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
plugins=(
brew
direnv
eza
fzf
git
zoxide
)
ZOXIDE_CMD_OVERRIDE=cd
# Manage Oh-My-Zsh plugins with Antigen
source $(brew --prefix)/share/antigen/antigen.zsh
# antigen use oh-my-zsh
antigen use ohmyzsh/ohmyzsh
# Specify plugins we want
# antigen bundle memark/zsh-dotnet-completion
antigen bundle Leizhenpeng/zsh-plugin-pnpm
# antigen bundle nvm
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting
# fzf
antigen bundle Aloxaf/fzf-tab
antigen bundle Freed-Wu/fzf-tab-source@main
# OMZ - just remind me to update when it's time
zstyle ':omz:update' mode reminder
# eza
zstyle ':omz:plugins:eza' 'dirs-first' yes
zstyle ':omz:plugins:eza' 'git-status' yes
zstyle ':omz:plugins:eza' 'header' yes
zstyle ':omz:plugins:eza' 'icons' yes
antigen apply
# init tools
eval "$(oh-my-posh init zsh --config $HOME/.ohmyposh/base.json)"
eval "$(fnm env --use-on-cd --shell zsh --version-file-strategy=recursive --corepack-enabled)"
# history setup
HISTFILE=$HOME/.zhistory
SAVEHIST=1000
HISTSIZE=999
setopt share_history
setopt hist_expire_dups_first
setopt hist_ignore_dups
setopt hist_verify
# 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`.
alias d=dotnet
alias db="dotnet build"
alias dw="dotnet watch"
alias dr="dotnet run"
alias dt="dotnet test"
alias config='git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
alias zshconfig="code ~/.zshrc"
# pnpm
export PNPM_HOME="/Users/matt/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# Load Angular CLI autocompletion.
source <(ng completion script)