-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_env_vars
92 lines (75 loc) · 3.82 KB
/
.bash_env_vars
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
# !/bin/bash
if [ -f "$HOME/.cargo/env" ]; then
source "$HOME/.cargo/env"
fi
if [ -d "$HOME/.local/go" ]; then
export GOPATH="$HOME/.local/go"
export PATH="$PATH:$HOME/.local/go/bin"
fi
export GPG_TTY=$(tty)
export GH_EMAIL="[email protected]"
export COPYRIGHT_HOLDER="blockjoe.x"
if command -v bat &> /dev/null; then
# bat
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
fi
# FZF
if [ -f /usr/share/doc/fzf/examples/key-bindings.bash ]; then
source /usr/share/doc/fzf/examples/key-bindings.bash
else
echo "FZF key-bindings not isntalled"
fi
if [ -f /usr/share/doc/fzf/examples/completion.bash ]; then
source /usr/share/doc/fzf/examples/completion.bash
else
echo "FZF complettion not installed"
fi
export FZF_HISTORY_DIR='/home/joe/.history/fzf'
FZF_BASE_OPTS="
--layout=reverse
--height=75%
--info=hidden
--multi
--ansi
--bind '?:toggle-preview'
--bind 'ctrl-a:select-all'
"
if command -v fd &> /dev/null; then
export FZF_DEFAULT_COMMAND="fd --follow --color=always --exclude '.git' --exclude 'node_modules' --exclude 'venv' --exclude '.cache'"
export FZF_ALT_C_COMMAND="$FZF_DEFAULT_COMMAND --type d"
_fzf_compgen_path(){
fd . "$1"
}
_fzf_compgen_dir(){
fd --type d . "$1"
}
elif command -v fdfind &> /dev/null; then
export FZF_DEFAULT_COMMAND="fdfind --follow --color=always --exclude '.git' --exclude 'node_modules' --exclude 'venv' --exclude '.cache'"
export FZF_ALT_C_COMMAND="$FZF_DEFAULT_COMMAND --type d"
_fzf_compgen_path(){
fdfind . "$1"
}
_fzf_compgen_dir(){
fdfind --type d . "$1"
}
else
echo "fd not installed"
export FZF_DEFAULT_COMMAND="find"
fi
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
if [ -f "$HOME/.local/bin/preview-fzf" ]; then
export FZF_DEFAULT_OPTS="$FZF_BASE_OPTS --preview '${HOME}/.local/bin/preview-fzf {}'"
elif command -v bat &> /dev/null; then
export FZF_DEFAULT_OPTS="$FZF_BASE_OPTS --preview 'bat --style=numbers --color=always --line-range :500 {}'"
else
export FZF_DEFAULT_OPTS="$FZF_BASE_OPTS --preview 'cat {}'"
fi
# NVM
if [ -d "$HOME/.nvm" ]; then
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
fi
export POCKET_MAINNET_SEEDS="03b74fa3c68356bb40d58ecc10129479b159a145@seed1.mainnet.pokt.network:20656,64c91701ea98440bc3674fdb9a99311461cdfd6f@seed2.mainnet.pokt.network:21656,0057ee693f3ce332c4ffcb499ede024c586ae37b@seed3.mainnet.pokt.network:22856,9fd99b89947c6af57cd0269ad01ecb99960177cd@seed4.mainnet.pokt.network:23856,f2a4d0ec9d50ea61db18452d191687c899c3ca42@seed5.mainnet.pokt.network:24856,f2a9705924e8d0e11fed60484da2c3d22f7daba8@seed6.mainnet.pokt.network:25856,582177fd65dd03806eeaa2e21c9049e653672c7e@seed7.mainnet.pokt.network:26856,2ea0b13ab823986cfb44292add51ce8677b899ad@seed8.mainnet.pokt.network:27856,a5f4a4cd88db9fd5def1574a0bffef3c6f354a76@seed9.mainnet.pokt.network:28856,d4039bd71d48def9f9f61f670c098b8956e52a08@seed10.mainnet.pokt.network:29856,5c133f07ed296bb9e21e3e42d5f26e0f7d2b2832@poktseed100.chainflow.io:26656,[email protected]:26656"
export POCKET_TESTNET_SEEDS="3487f08b9e915f347eb4372b406326ffbf13d82c@testnet-seed-1.nodes.pokt.network:4301,27f4295d1407d9512a25d7f2ea91d1a415660c16@testnet-seed-2.nodes.pokt.network:4302,0beb1a93fe9ce2a3b058b98614f1ed0f5ad664d5@testnet-seed-3.nodes.pokt.network:4303,8fd656162dbbe0402f3cef111d3ad8d2723eef8e@testnet-seed-4.nodes.pokt.network:4304,80100476b67fea2e94c6b2f72e40cf8f6062ed21@testnet-seed-5.nodes.pokt.network:4305,370edf0882e094e83d4087d5f8801bbf24f5d931@testnet-seed-6.nodes.pokt.network:4306,57aff5a049846d14e2dcc06fdcc241d7ebe6a3eb@testnet-seed-7.nodes.pokt.network:4307,545fb484643cf2efbcf01ee2b7bc793ef275cd84@testnet-seed-8.nodes.pokt.network:4308"
export POCKET_DATA_DIR="/data/fast/joe/pocket"