-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzsh-fast-ide
110 lines (93 loc) · 3.12 KB
/
zsh-fast-ide
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
if [ ! -f "$HOME/.antigen.zsh" ]; then
curl -L git.io/antigen > $HOME/.antigen.zsh
fi
source $HOME/.antigen.zsh
CASE_SENSITIVE="true"
ZSH_THEME=""
setopt hist_ignore_all_dups
setopt hist_save_nodups
setopt hist_ignore_space
setopt share_history
antigen use oh-my-zsh
antigen bundle git
antigen bundle gitfast
antigen bundle heroku
antigen bundle pip
antigen bundle debian
antigen bundle command-not-found
antigen bundle tmuxinator
# antigen bundle vi-mode
antigen bundle agkozak/zsh-z
antigen bundle zdharma/fast-syntax-highlighting
antigen bundle hschne/fzf-git
antigen bundle leophys/zsh-plugin-fzf-finder
antigen bundle zsh-users/zsh-history-substring-search
# antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
antigen bundle mollifier/cd-gitroot
antigen bundle Tarrasch/zsh-bd
antigen bundle djui/alias-tips
antigen bundle adolfoabegg/browse-commit
antigen bundle joel-porquet/zsh-dircolors-solarized
antigen bundle unixorn/git-extra-commands
antigen bundle cal2195/q
antigen bundle robertzk/send.zsh
antigen bundle gko/ssh-connect
antigen bundle nviennot/zsh-vim-plugin
# antigen bundle wfxr/forgit TODO: will be fixed in #105
antigen theme https://github.com/denysdovhan/spaceship-prompt spaceship
antigen apply
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#808080,bg=gray,underline"
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
bindkey '^ ' autosuggest-accept
bindkey "^I" menu-expand-or-complete
bindkey -M vicmd r edit-command-line
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1
SPACESHIP_GIT_BRANCH_PREFIX=""
KEYTIMEOUT=1
export SHELL=`which zsh`
export EDITOR=nvim
export LC_ALL=en_US.UTF-8
export GOPATH=$HOME/go
export PATH=$PATH:$HOME/go/bin
alias o=nvim
alias c=vimcat
alias gs='git status'
alias cdr='cd `git root`'
alias p=echo
alias r=clear
[ -f $HOME/.fzf.zsh ] && source $HOME/.fzf.zsh
export FZF_DEFAULT_COMMAND='fd --type f'
export FZF_DEFAULT_OPTS="--layout=reverse --inline-info"
export WORDCHARS=''
fzf-history-widget-accept() {
[[ -z $BUFFER ]] && fc -R $HISTFILE
fzf-history-widget
zle accept-line
}
zle -N fzf-history-widget-accept
bindkey '^R' fzf-history-widget-accept
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export PATH="/opt/homebrew/bin:$PATH"
export PATH="/opt/homebrew/Cellar:$PATH"
export PATH="/opt/homebrew/Cellar/llvm/12.0.0_1/bin:$PATH"
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
export PATH="/opt/homebrew/lib/ruby/gems/3.0.0/bin:$PATH"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/chuyangzhou/miniforge3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/chuyangzhou/miniforge3/etc/profile.d/conda.sh" ]; then
. "/Users/chuyangzhou/miniforge3/etc/profile.d/conda.sh"
else
export PATH="/Users/chuyangzhou/miniforge3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# SDK Man replaced GVM. Using for Groovy, Gradle, and Maven Version Management
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"