-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
55 lines (36 loc) · 1.46 KB
/
zshrc
File metadata and controls
55 lines (36 loc) · 1.46 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
# Generic defaults
source ~/.zsh/generic.sh
# History
source ~/.zsh/history.sh
# Bind keys
source ~/.zsh/keys.sh
# Alias
source ~/.zsh/alias.sh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export PATH="/home/legrems/Documents/mattermost:$PATH"
export PATH="/home/legrems/.cargo/bin:$PATH"
if [ -f '/home/legrems/.cdwe.zsh' ]; then . '/home/legrems/.cdwe.zsh'; fi
eval "$(zoxide init zsh --cmd cd | sed -e 's/\\builtin cd/cdwe/g')"
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
export KEYTIMEOUT=1
export GPG_TTY=$(tty)
fpath+=~/.zfunc; autoload -Uz compinit; compinit
zstyle ':completion:*' menu select
nv() {
# Assumes all configs exist in directories named ~/.config/nvim-*
local config=$(fd --max-depth 1 --glob 'nvim-*' ~/.config | fzf --prompt="Neovim Configs > " --height=~50% --layout=reverse --border --exit-0)
# If I exit fzf without selecting a config, don't open Neovim
[[ -z $config ]] && echo "No config selected" && return
# Open Neovim with the selected config
NVIM_APPNAME=$(basename $config) nvim $@
}
# AsyncAPI CLI Autocomplete
ASYNCAPI_AC_ZSH_SETUP_PATH=/home/legrems/.cache/@asyncapi/cli/autocomplete/zsh_setup && test -f $ASYNCAPI_AC_ZSH_SETUP_PATH && source $ASYNCAPI_AC_ZSH_SETUP_PATH; # asyncapi autocomplete setup
# pnpm
export PNPM_HOME="/home/legrems/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end