generated from Ren-B-7/Simplexity.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
129 lines (94 loc) · 3.46 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# 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
ZSH_THEME="powerlevel10k/powerlevel10k"
source "$HOME/antigen.zsh"
antigen theme romkatv/powerlevel10k
antigen use oh-my-zsh
# package manager/ env support
# antigen bundle git
# antigen bundle rvm
# antigen bundle pyenv
# antigen bundle nvm
# antigen bundle npm
# antigen bundle pip
# antigen bundle gem
# language support
# antigen bundle perl
# antigen bundle ruby
# antigen bundle python
# os support
# antigen bundle ubuntu
# antigen bundle zoxide
# antigen bundle history
# antigen bundle asdf
# antigen bundle cpanm
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
antigen apply
# history setup
HISTFILE=$HOME/.zhistory
SAVEHIST=1000
HISTSIZE=999
setopt share_history
setopt hist_expire_dups_first
setopt hist_ignore_dups
setopt hist_verify
# completion using arrow keys (based on history)
bindkey '^[[A' history-search-backward
bindkey '^[[B' history-search-forward
eval "$(zoxide init zsh)"
# Start of .bashrc
export CARGOINSTALLPATH="$HOME/.cargo/bin/"
export PATH="$CARGOINSTALLPATH:$PATH"
export MASON_INSTALLED_LSPS="$HOME/.local/share/Simplexity.nvim/mason/bin/"
export PATH="$MASON_INSTALLED_LSPS:$PATH"
eval "$(rbenv init -)"
# GVM init
# /home/renier/.gvm/bin
export GOINSTALLPATH="$HOME/.gvm/bin/"
export PATH="$GOINSTALLPATH:$PATH"
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm"
# NVM init
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
export NVM_update="curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash"
export SUDO_ASKPASS=/usr/bin/gnome-ssh-askpass
# >>> juliaup initialize >>>
# !! Contents within this block are managed by juliaup !!
path=("$HOME/.juliaup/bin" $path)
export PATH
# <<< juliaup initialize <<<
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
#Exit bashrc
setopt COMBINING_CHARS
# Remap fdfind to fd
alias fd="fdfind"
# Running multiple neovim configs
alias cvim="NVIM_APPNAME=Complexity.nvim nvim"
alias bvim="NVIM_APPNAME=Simplexity.nvim nvim"
alias svim="NVIM_APPNAME=Simplicity.nvim nvim"
alias tvim="NVIM_APPNAME=tiny.nvim nvim"
# Select the name of the .config file to run as neovim config
# Tiny is neovim with some handy options set, no plugins, no config is nothing
function nvims() {
items=("no-config" "tiny.nvim" "Simplicity.nvim" "Simplexity.nvim" "Complexity.nvim")
config=$(printf "%s\n" "${items[@]}" | fzf --prompt=" Neovim Config " --height=~50% --layout=reverse --border --exit-0)
if [[ -z $config ]]; then
echo "Nothing selected"
return 0
fi
if [[ $config == "no-config" ]]; then
config=""
fi
NVIM_APPNAME=$config nvim"$@"
}
bindkey -s ^a "nvims\n"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh