-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
63 lines (50 loc) · 1.65 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
# Add deno completions to search path
if [[ ":$FPATH:" != *":/home/reptoxx/.zsh/completions:"* ]]; then export FPATH="/home/reptoxx/.zsh/completions:$FPATH"; fi
# history
HISTSIZE=50000
SAVEHIST=100000
HISTFILE=~/.cache/zsh/.histfile
autoload -Uz compinit
compinit
# Set Starship Path
export STARSHIP_CONFIG=$HOME/.config/starship/starship.toml
# Change PATH here
# check if folder exists
if [ -d "/opt/homebrew/bin" ]; then
export PATH=/opt/homebrew/bin:$PATH
if [ -d "/opt/homebrew/sbin" ]; then
export PATH=/opt/homebrew/sbin:$PATH
fi
fi
export PATH=$HOME/.bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/.local/share/bob/nvim-bin:$PATH
# Carapace setup
export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional
zstyle ':completion:*' format $'\e[2;37mCompleting %d\e[m'
# User configuration
source ~/.config/helper-scripts/init.sh
# This file is a place to put your custom aliases, functions, etc.
source ~/.bash_aliases
eval "$(starship init zsh)"
eval $(thefuck --alias)
eval "$(zoxide init zsh --cmd cd)"
source <(carapace _carapace)
# pnpm
export PNPM_HOME="$HOME/.pnpm-store"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# Node Version Manager
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# bun completions
[ -s "/home/reptoxx/.bun/_bun" ] && source "/home/reptoxx/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
export XDG_CONFIG_HOME="$HOME/.config/"
# . "/home/reptoxx/.deno/env"