1
- # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
2
- # Initialization code that may require console input (password prompts, [y/n]
3
- # confirmations, etc.) must go above this block, everything else may go below.
4
- if [[ -r " ${XDG_CACHE_HOME:- $HOME / .cache} /p10k-instant-prompt-${(% ):-% n} .zsh" ]]; then
5
- source " ${XDG_CACHE_HOME:- $HOME / .cache} /p10k-instant-prompt-${(% ):-% n} .zsh"
6
- fi
1
+ # prompt
2
+ export TERM=screen-256color
3
+ # if [ -f /opt/homebrew/share/liquidprompt ]; then
4
+ # . /opt/homebrew/share/liquidprompt
5
+ # fi
7
6
8
7
stty -ixon
9
8
setopt noflowcontrol
10
9
11
10
ZSH_THEME=" flazz"
12
- plugins=(git golang history tmux archlinux z )
11
+ plugins=(git golang history tmux archlinux autoenv fzf-docker )
13
12
14
13
[ ! -f ~ /.zgen/zgen.zsh ] && git clone https://github.com/tarjoilija/zgen ~ /.zgen
15
14
source ~ /.zgen/zgen.zsh
@@ -31,8 +30,6 @@ if [[ $TERM =~ konsole.* ]]; then
31
30
export FZF_DEFAULT_OPTS=' --color fg+:5,hl+:6'
32
31
fi
33
32
34
- export TERM=xterm-256color
35
-
36
33
export ZSH=~ /.zgen/robbyrussell/oh-my-zsh-master/oh-my-zsh.sh
37
34
export PATH=$HOME /bin:$PATH
38
35
export PATH=$PATH :$HOME /go/bin
@@ -45,16 +42,19 @@ export PATH=$PATH:$HOME/.gem/ruby/2.4.0/bin
45
42
export PATH=$PATH :/root/.gem/ruby/2.5.0/bin
46
43
export PATH=$PATH :$HOME /.cargo/bin
47
44
export PATH=$PATH :/snap/bin
48
- export PATH=$PATH :$HOME /.asdf/installs/golang/1.19.1/packages/bin
45
+ export PATH=$PATH :$HOME /.asdf/installs/golang/1.20.4/packages/bin/
46
+ export PATH=$PATH :$HOME /.asdf/installs/rust/beta/bin/
49
47
export GPG_TTY=$( tty)
50
48
export NODE_OPTIONS=" --experimental-repl-await"
49
+ export DISABLE_UPDATE_PROMPT=true
50
+ export DISABLE_AUTO_UPDATE=true
51
51
52
52
NPM_PACKAGES=" ${HOME} /.npm-packages"
53
53
PATH=" $NPM_PACKAGES /bin:$PATH "
54
54
55
55
if ! zgen saved; then
56
56
zgen oh-my-zsh
57
- zgen oh-my-zsh plugins/z
57
+ # zgen oh-my-zsh plugins/z
58
58
zgen save
59
59
fi
60
60
@@ -63,14 +63,71 @@ if (( $+commands[direnv] )) ; then
63
63
fi
64
64
65
65
[ -f ~ /.fzf.zsh ] && source ~ /.fzf.zsh
66
- [ -f ~ /.fzf.colors ] && source ~ /.fzf.colors
66
+ # if [ "$TMUX" = "" ]; then tmux -2u new; fi
67
+ if [ -t 0 ] && [[ -z $TMUX ]] && [[ $- = * i* ]]; then exec tmux; fi
68
+
69
+ eval " $( atuin init zsh --disable-up-arrow) "
67
70
68
- if [ " $TMUX " = " " ]; then tmux -2u new; fi
71
+ # eval "$(almel init zsh)"
72
+ # eval "$(starship init zsh)"
73
+ # eval "$(zoxide init zsh)"
74
+ eval " $( oh-my-posh init zsh --config ~ /.config/omp/agnoster.omp.json) "
69
75
70
76
# set PATH for cuda 10.1 installation
71
77
if [ -d " /usr/local/cuda-10.2/bin/" ]; then
72
78
export PATH=/usr/local/cuda-10.2/bin${PATH: +: ${PATH} }
73
79
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH: +: ${LD_LIBRARY_PATH} }
74
80
fi
75
- export PATH=" /home/tuxcanfly/Work/git-fuzzy/bin:$PATH "
76
- export LANG=en_US.utf8
81
+ export LANG=en_US.UTF-8
82
+ export LC_CTYPE=en_US.UTF-8
83
+
84
+ export PATH=" $PATH :/Users/tuxcanfly/.foundry/bin"
85
+ export ETH_RPC_URL=https://cloudflare-eth.com
86
+ export ETHERSCAN_API_KEY=2PPG57MK97CYYUSYIBE45MSZJ5RWU28HKA
87
+
88
+ # Created by `pipx` on 2022-10-02 02:00:33
89
+ export PATH=" $PATH :/Users/tuxcanfly/Library/Python/3.10/bin"
90
+ export DISABLE_AUTO_UPDATE=true
91
+
92
+ # source ~/Work/fzf-tab-completion/zsh/fzf-zsh-completion.sh
93
+ # bindkey '^I' fzf_completion
94
+
95
+ source ~ /Work/fzf-tab/fzf-tab.plugin.zsh
96
+
97
+ source ~ /Work/forgit/forgit.plugin.zsh
98
+ export PATH=$PATH :~ /Work/forgit/bin/
99
+ export FORGIT_FZF_DEFAULT_OPTS="
100
+ --exact
101
+ --border
102
+ --cycle
103
+ --reverse
104
+ --height '80%'
105
+ "
106
+ export FZF_DEFAULT_OPTS="
107
+ --border=rounded
108
+ --margin=1
109
+ --padding=1
110
+ --info inline
111
+ --reverse
112
+ --cycle
113
+ "
114
+
115
+ [ -f ~ /.zsh.colors ] && source ~ /.zsh.colors
116
+ [ -f ~ /.fzf.colors ] && source ~ /.fzf.colors
117
+
118
+ export FZF_CTRL_T_OPTS=" --preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
119
+ export FZF_DEFAULT_COMMAND=' fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
120
+ export FZF_CTRL_T_COMMAND=" $FZF_DEFAULT_COMMAND "
121
+
122
+ [ -f ~ /.zsh.fzf ] && . ~ /.zsh.fzf
123
+ [ -f ~ /.fzf.docker ] && . ~ /.fzf.docker
124
+ export DENO_INSTALL=" /Users/tuxcanfly/.deno"
125
+ export PATH=" $DENO_INSTALL /bin:$PATH "
126
+ source ~ /.env
127
+ export bcli=' bitcoin-cli -regtest -rpcport=18332 -rpcuser=rpcuser -rpcpassword=rpcpass'
128
+ export FZF_COMPLETION_TRIGGER=' ,'
129
+
130
+ # Added by Radicle.
131
+ export PATH=" $PATH :/Users/tuxcanfly/.radicle/bin"
132
+ bindkey " ^j" up-line-or-history
133
+ bindkey " ^k" down-line-or-history
0 commit comments