-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
66 lines (52 loc) · 1.46 KB
/
Copy pathbashrc
File metadata and controls
66 lines (52 loc) · 1.46 KB
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
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Stolen from /etc/profile
# Need to redefine pathmunge, it gets undefined at the end of /etc/bashrc
pathmunge () {
case ":${PATH}:" in
*:"$1":*)
;;
*)
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
esac
}
export EDITOR=vim
export COLORTERM=truecolor
# Golang
export GOROOT=/usr/lib/go
export GOPATH=$HOME/.go
# JAVA_HOME
export JAVA_HOME=${JAVA_HOME:=/usr/lib64/jvm/default}
# debuginfod urls
export DEBUGINFOD_URLS="https://repo.archlinuxcn.org"
# bun
export BUN_INSTALL="$HOME/.bun"
# Additional PATH
pathmunge $HOME/.go/bin after
pathmunge $HOME/.cargo/bin after
pathmunge $BUN_INSTALL/bin after
pathmunge /usr/share/bcc/tools after
pathmunge /usr/share/bcc/introspection after
export PATH=$PATH
# riggrep
export RIPGREP_CONFIG_PATH=~/.config/ripgrep/ripgreprc
# manpage
export MANPAGER="sh -c 'col -bx | bat -l man -p --theme ansi'"
export MANROFFOPT="-c"
# export OPENAI_API_BASE=https://ark.cn-beijing.volces.com/api/v3
# export AIDER_MODEL=openai/deepseek-v3-250324
export OPENAI_BASE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1"
export OPENAI_MODEL="qwen3-coder-plus"
export AIDER_MODEL=openai/qwen3-coder-plus
# bun completions
[ -s "$BUN_INSTALL/_bun" ] && source "$BUN_INSTALL/_bun"
# Aliases
alias xclip='xclip -sel clip'
alias cat='bat -pp --theme ansi'