-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_exports
More file actions
42 lines (37 loc) · 2.36 KB
/
bash_exports
File metadata and controls
42 lines (37 loc) · 2.36 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
#!/bin/bash
# ==============================================================================
# SHARED ENVIRONMENT EXPORTS
# ==============================================================================
# Environment variables shared across all systems/specialisations.
# Machine-specific exports should be defined in:
# - secrets/bash_secrets.sh (for sensitive values)
# - specialisations/bashrc_* (for machine-specific configs)
# ==============================================================================
# ------------------------------------------------------------------------------
# Prompt Configuration (used by bash_prompt)
# ------------------------------------------------------------------------------
export SHOW_GIT_BRANCH=0 # Toggle: show git branch in prompt (0=off, 1=on)
export SHOW_VENV=1 # Toggle: show conda/venv in prompt (0=off, 1=on)
# SHOW_EMOJIS is auto-detected in bash_prompt based on terminal capabilities
#export SHOW_EMOJIS=0 # Toggle: show emojis in prompt (0=off, 1=on)
unset SHOW_EMOJIS # Let bash_prompt auto-detect emoji support
export DIR_LENGTH="short" # Directory display: "short" (\W) or "long" (\w)
# ------------------------------------------------------------------------------
# Build Tools
# ------------------------------------------------------------------------------
export CMAKE_GENERATOR="${CMAKE_GENERATOR:-Ninja}"
# ------------------------------------------------------------------------------
# PATH
# ------------------------------------------------------------------------------
# Guard against duplicate entries when opening multiple terminals (each sources this file)
[[ ":$PATH:" != *":$HOME/.local/bin:"* ]] && export PATH="$HOME/.local/bin:$PATH"
# ------------------------------------------------------------------------------
# Atuin (shell history sync)
# ------------------------------------------------------------------------------
# Must be sourced here (before bash_history) so that `command -v atuin` in
# bash_history resolves correctly and BC_ATUIN_ACTIVE is set to 1.
# The env script has its own PATH dedup guard built in.
[[ -f "$HOME/.atuin/bin/env" ]] && . "$HOME/.atuin/bin/env"
# Point atuin at the repo-managed config directory instead of symlinking
# into ~/.config/atuin/. Atuin reads $ATUIN_CONFIG_DIR/config.toml.
export ATUIN_CONFIG_DIR="$BASH_CONFIG_DIR/configs/atuin"