-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
71 lines (60 loc) · 2.76 KB
/
bashrc
File metadata and controls
71 lines (60 loc) · 2.76 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
67
68
69
70
71
# ============================================================================
# Bash Configuration (essentials, ported from .zshrc)
# ============================================================================
# Source environment variables
[[ -f "$HOME/.env" ]] && source "$HOME/.env"
# ----------------------------------------------------------------------------
# Environment Variables
# ----------------------------------------------------------------------------
export ASDF_DATA_DIR="$HOME/.asdf"
export EDITOR=nvim
export VISUAL="$EDITOR"
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export DOCKER_COMPOSE_TIMEOUT=200
export COMPOSE_HTTP_TIMEOUT=200
export AWS_VAULT_BACKEND="file"
export KUBECONFIG="$HOME/.kube/config:$HOME/.kube/cx-api-production.config:$HOME/.kube/cx-api-staging.config"
ulimit -n 10240
# ----------------------------------------------------------------------------
# PATH Configuration
# ----------------------------------------------------------------------------
# Homebrew (Apple Silicon)
if [[ "$(uname -m)" == "arm64" ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
else
eval "$(/usr/local/bin/brew shellenv)"
fi
# Prepend local and tool bins
export PATH="$ASDF_DATA_DIR/shims:$HOME/.local/bin:$HOME/.atuin/bin:$HOME/bin:$PATH"
# Cargo
[[ -f "$HOME/.cargo/env" ]] && . "$HOME/.cargo/env"
# ----------------------------------------------------------------------------
# ASDF Version Manager
# ----------------------------------------------------------------------------
if [[ -f "$HOME/.asdf/asdf.sh" ]]; then
. "$HOME/.asdf/asdf.sh"
[[ -f "$HOME/.asdf/completions/asdf.bash" ]] && . "$HOME/.asdf/completions/asdf.bash"
fi
# ----------------------------------------------------------------------------
# FZF
# ----------------------------------------------------------------------------
[[ -f ~/.fzf.bash ]] && source ~/.fzf.bash
export FZF_DEFAULT_COMMAND="fd --hidden --strip-cwd-prefix --exclude .git"
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# ----------------------------------------------------------------------------
# Zoxide (smart cd)
# ----------------------------------------------------------------------------
command -v zoxide &>/dev/null && eval "$(zoxide init bash)"
# ----------------------------------------------------------------------------
# Atuin (shell history sync)
# ----------------------------------------------------------------------------
if [[ -f "$HOME/.atuin/bin/env" ]]; then
. "$HOME/.atuin/bin/env"
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
eval "$(atuin init bash)"
fi
# ----------------------------------------------------------------------------
# Aliases & Functions
# ----------------------------------------------------------------------------
[[ -f ~/.bash_aliases ]] && source ~/.bash_aliases