-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc.precustom
More file actions
executable file
·98 lines (78 loc) · 4.49 KB
/
bashrc.precustom
File metadata and controls
executable file
·98 lines (78 loc) · 4.49 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
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
#!/usr/bin/env bash
###############################################################################
# SENTINEL – Early Bash Configuration
# ------------------------------------------------------------------------------
# This file is loaded EARLY in the bash startup process.
# Use it for core settings that should be available to all bash sessions and
# potentially affect how other components load.
#
# TOGGLE STRUCTURE:
# - Core system toggles (U_*)
# - Security and behavior settings (SENTINEL_SECURE_*)
# - Configuration that other modules depend upon
###############################################################################
## Default options for bashrc behavior
## -----------------------------------
# Read the source to see exactly what these do. Most of these are BOOLEAN (0 or 1)
# Sets the default title for the terminal window
#export U_DEFAULT_TITLE="$BASH" # Terminal title (core)
# Turn this on to enable tracing/debugging (for developers)
#export U_DEBUG=1 # Debug mode (core)
# Whether to load the contents of ~/bashrc.postcustom after bashrc completes
export U_POSTCUSTOM=1 # Load postcustom (core) - REQUIRED for SENTINEL
# Whether to include ~/bin and ~/.bin in $PATH
export U_BINS=1 # Add ~/bin to PATH (core)
# Whether to load ~/.bash_functions and ~/.bash_functions.d/*
export U_FUNCS=1 # Load functions (core) - REQUIRED for SENTINEL
# Whether to load ~/.bash_aliases and ~/.bash_aliases.d/*
export U_ALIASES=1 # Load aliases (core) - REQUIRED for SENTINEL
# Whether to enable authentication agent helpers
export U_AGENTS=1 # SSH/GPG agent helpers (core)
# If enabled, terminal title will automatically be set to the running command
#export U_UPDATETITLE=1 # Dynamic terminal title (core)
# Whether to enable lesspipe (enables 'less' to read non-text files)
export ENABLE_LESSPIPE=1 # Lesspipe support (core)
# If enabled, the modules system will be enabled (required for SENTINEL)
export U_MODULES_ENABLE=1 # Enable SENTINEL modules system - REQUIRED
###############################################################################
# SENTINEL CORE SECURITY SETTINGS
# ------------------------------------------------------------------------------
# These settings control core security features and should be defined EARLY.
# DO NOT SET THESE IN OTHER FILES. This is the canonical source for these values.
###############################################################################
# Default Security Configuration
# -----------------------------
# Python virtualenv auto-activation
export VENV_AUTO=1 # Enable Python venv auto-activation
# Secure remove (rm) command
export SENTINEL_SECURE_RM=1 # Use secure rm when using 'rm' command
# Module system behavior
export SENTINEL_QUIET_MODULES=0 # Set to 1 to suppress module load messages
# Secure Logout Configuration
# --------------------------
# These settings control what happens when you log out of your shell
export SENTINEL_SECURE_BASH_HISTORY=0 # Clear bash history on logout
export SENTINEL_SECURE_SSH_KNOWN_HOSTS=0 # Clear SSH known_hosts on logout
export SENTINEL_SECURE_CLEAN_CACHE=0 # Clean cache directories on logout
export SENTINEL_SECURE_BROWSER_CACHE=0 # Clean browser cache on logout
export SENTINEL_SECURE_RECENT=0 # Clear recent files list on logout
export SENTINEL_SECURE_VIM_UNDO=1 # Clear vim undo history on logout
export SENTINEL_SECURE_CLIPBOARD=0 # Clear clipboard on logout
export SENTINEL_SECURE_CLEAR_SCREEN=0 # Clear screen on logout
# Core Module Enablement
# ---------------------
# This controls whether the autocomplete system will be activated
# It's defined here because it needs to be available early for module loading
export SENTINEL_AUTOCOMPLETE_ENABLED=1 # Enable autocomplete system
# Performance Configuration
# -----------------------
# Lazy loading for better performance
export U_LAZY_LOAD=1 # Enable lazy loading (performance boost)
# Bash profiling
export BASHRC_PROFILE=1 # Enable bashrc performance profiling
###############################################################################
# IMPORTANT:
# - Do not add feature module toggles here. Those belong in bashrc.postcustom.
# - Do not set SENTINEL_*_ENABLED flags here except for core components.
# - This file contains settings that must be available BEFORE modules load.
###############################################################################