This repository has been archived by the owner on Jan 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_bashrc.tmpl
116 lines (89 loc) · 2.56 KB
/
dot_bashrc.tmpl
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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# alias ls='ls --color=auto'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '
# Homebrew
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# Neovim
export PATH="$PATH:/opt/nvim-linux64/bin"
#Zoxide
export PATH="$PATH:$HOME/.local/bin"
eval "$(zoxide init bash)"
# Starship
show_newline() {
if [ -z "$NEW_LINE_BEFORE_PROMPT" ]; then
NEW_LINE_BEFORE_PROMPT=1
elif [ "$NEW_LINE_BEFORE_PROMPT" -eq 0 ]; then
NEW_LINE_BEFORE_PROMPT=1
elif [ "$NEW_LINE_BEFORE_PROMPT" -eq 1 ]; then
echo ""
fi
}
reset_newline() {
NEW_LINE_BEFORE_PROMPT=0
clear
}
PROMPT_COMMAND="show_newline"
eval "$(starship init bash)"
alias ls="eza -a"
alias cat=bat
alias n=nvim
alias clear="reset_newline"
. "$HOME/.cargo/env"
# fnm
FNM_PATH="$HOME/.local/share/fnm"
if [ -d "$FNM_PATH" ]; then
export PATH="$FNM_PATH:$PATH"
eval "`fnm env`"
fi
eval "$(fnm env --use-on-cd)"
export PATH="$PATH:$HOME/go/bin"
source ~/.local/share/blesh/ble.sh
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH=$BUN_INSTALL/bin:$PATH
export TEMPL_EXPERIMENT=rawgo
# >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba init' !!
export MAMBA_EXE='/home/nathan/.local/bin/micromamba';
export MAMBA_ROOT_PREFIX='/home/nathan';
__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
alias micromamba="$MAMBA_EXE" # Fallback on help from mamba activate
fi
unset __mamba_setup
# <<< mamba initialize <<<
alias mm=micromamba
alias aid=~/.aider.sh
export PATH=$PATH:~/Projects/myDesktop/eww/target/release
alias lzd='lazydocker'
export GROQ_API_KEY={{ .groq }}
export SNYK_TOKEN={{ .snyk }}
mm activate .mainPy
export VERTEXAI_PROJECT={{ .vertexAI }}
export VERTEXAI_LOCATION=northamerica-northeast1
export SRC_ACCESS_TOKEN={{ .sourcegraph }}
export SRC_ENDPOINT=https://sourcegraph.com
export COLIMA_HOME=$HOME/.colima
export DOCKER_HOST="unix:///home/nathan/.colima/default/docker.sock"
export TERMINFO="/usr/share/terminfo"
. "/home/nathan/.deno/env"
source /home/nathan/.local/share/bash-completion/completions/deno.bash
export PUBLIC_GITHUB_AUTH_TOKEN={{ .ogd }}
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
builtin cd -- "$cwd"
fi
rm -f -- "$tmp"
}
export ZELLIJ_AUTO_ATTACH=true
eval "$(zellij setup --generate-auto-start bash)"
. "$HOME/.limbo/env"