-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
161 lines (133 loc) · 4.37 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# prompt
export TERM=screen-256color
#if [ -f /opt/homebrew/share/liquidprompt ]; then
# . /opt/homebrew/share/liquidprompt
#fi
stty -ixon
setopt noflowcontrol
ZSH_THEME="flazz"
plugins=(git golang history tmux archlinux autoenv fzf-docker)
[ ! -f ~/.zgen/zgen.zsh ] && git clone https://github.com/tarjoilija/zgen ~/.zgen
source ~/.zgen/zgen.zsh
source $ZSH/oh-my-zsh.sh
[ -f ~/.zsh.aliases ] && . ~/.zsh.aliases
# Base16 Shell
BASE16_SHELL="$HOME/.config/base16-shell/"
[ -n "$PS1" ] && \
[ -s "$BASE16_SHELL/profile_helper.sh" ] && \
eval "$("$BASE16_SHELL/profile_helper.sh")"
# if [[ $TERM =~ konsole.* ]]; then
# export FZF_DEFAULT_OPTS='--color fg+:5,hl+:6'
# fi
export ZSH=~/.zgen/robbyrussell/oh-my-zsh-master/oh-my-zsh.sh
export PATH=$PATH:$HOME/.bin
#export PATH=$HOME/bin:$PATH
#export PATH=$PATH:$HOME/go/bin
#export PATH=$PATH:$HOME/.local/bin
#export PATH=$PATH:/home/linuxbrew/.linuxbrew/bin
#export PATH=$PATH:$HOME/.gem/ruby/2.4.0/bin
#export PATH=$PATH:/root/.gem/ruby/2.5.0/bin
#export PATH=$PATH:$HOME/.gem/ruby/2.4.0/bin
#export PATH=$PATH:/root/.gem/ruby/2.5.0/bin
#export PATH=$PATH:$HOME/.cargo/bin
#export PATH=$PATH:/snap/bin
export PATH=$PATH:/Users/tuxcanfly/.pkgx/iroh.computer/v0.8.0/bin
export GPG_TTY=$(tty)
export NODE_OPTIONS="--experimental-repl-await"
export DISABLE_UPDATE_PROMPT=true
export DISABLE_AUTO_UPDATE=true
NPM_PACKAGES="${HOME}/.npm-packages"
export PATH=$PATH:"$NPM_PACKAGES/bin"
export PATH=$PATH:/opt/homebrew/bin
[ ! -f ~/.asdf/asdf.sh ] && git clone https://github.com/asdf-vm/asdf.git ~/.asdf
source ~/.asdf/asdf.sh
source ~/.asdf/completions/asdf.bash
source ~/.s.zsh
if ! zgen saved; then
zgen oh-my-zsh
#zgen oh-my-zsh plugins/z
zgen save
fi
if (( $+commands[direnv] )) ; then
eval "$(direnv hook zsh)"
fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
#if [ "$TMUX" = "" ]; then tmux -2u new; fi
if [ -t 0 ] && [[ -z $TMUX ]] && [[ $- = *i* ]]; then exec tmux; fi
#eval "$(atuin init zsh --disable-up-arrow)"
#eval "$(almel init zsh)"
#eval "$(starship init zsh)"
# eval "$(zoxide init zsh)"
eval "$(oh-my-posh init zsh --config ~/.config/omp/agnoster.omp.json)"
# set PATH for cuda 10.1 installation
if [ -d "/usr/local/cuda-10.2/bin/" ]; then
export PATH=/usr/local/cuda-10.2/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
export PATH="$PATH:/Users/tuxcanfly/.foundry/bin"
export ETH_RPC_URL=https://cloudflare-eth.com
export ETHERSCAN_API_KEY=2PPG57MK97CYYUSYIBE45MSZJ5RWU28HKA
# Created by `pipx` on 2022-10-02 02:00:33
export PATH="$PATH:/Users/tuxcanfly/Library/Python/3.10/bin"
export DISABLE_AUTO_UPDATE=true
#source ~/Work/fzf-tab-completion/zsh/fzf-zsh-completion.sh
#bindkey '^I' fzf_completion
source ~/Work/fzf-tab/fzf-tab.plugin.zsh
source ~/Work/forgit/forgit.plugin.zsh
#export PATH=$PATH:~/Work/forgit/bin/
export FORGIT_FZF_DEFAULT_OPTS="
--exact
--border
--cycle
--reverse
--height '80%'
"
export FZF_DEFAULT_OPTS="
--border=double
--layout=reverse-list
--keep-right
--border-label-pos=-3:bottom
--scroll-off 3
--prompt 'history ⟩ '
--pointer '👉'
--marker ''
--no-bold
--min-height=30
--info inline
--reverse
--cycle
"
[ -f ~/.zsh.colors ] && source ~/.zsh.colors
[ -f ~/.fzf.colors ] && source ~/.fzf.colors
export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
[ -f ~/.zsh.fzf ] && . ~/.zsh.fzf
[ -f ~/.fzf.docker ] && . ~/.fzf.docker
export DENO_INSTALL="/Users/tuxcanfly/.deno"
#export PATH="$DENO_INSTALL/bin:$PATH"
source ~/.env
export bcli='bitcoin-cli -regtest -rpcport=18332 -rpcuser=rpcuser -rpcpassword=rpcpass'
export FZF_COMPLETION_TRIGGER=','
# Added by Radicle.
#export PATH="$PATH:/Users/tuxcanfly/.radicle/bin"
bindkey "^j" up-line-or-history
bindkey "^k" down-line-or-history
export RUST_BACKTRACE=full
export TASKDATA=~/.config/task
export GLAMOUR_STYLE=light
export GIT_EDITOR=nvim
# pnpm
export PNPM_HOME="/Users/tuxcanfly/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
#
# go install binaries path
export PATH=$PATH:~/go/bin
source /Users/tuxcanfly/.config/broot/launcher/bash/br
export BAT_THEME='Catppuccin Latte'