refacts bash/profile setup

This commit is contained in:
2026-04-21 11:19:45 +02:00
parent 5bd960d386
commit f150ed2750
52 changed files with 3446 additions and 724 deletions

16
.bash/system/README.md Normal file
View File

@@ -0,0 +1,16 @@
# System Configuration
System-level bash configurations for environment variables and paths.
## Files
- `index.sh` - Main entry point
- `android.sh` - Android SDK setup
- `bin.sh` - Binary paths and executable configurations
- `gui.sh` - GUI-related environment settings
- `java.sh` - Java environment configuration
## Important Notes
- These configs set environment variables needed system-wide
- Automatically sourced by main `.profile` via index file

6
.bash/system/android.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
export ANDROID_HOME_BAK2="$HOME/.local/share/JetBrains/Toolbox/apps/android-studio/"
export ANDROID_HOME_BAK="$HOME/Android/Sdk"
export ANDROID_SDK_ROOT="$HOME/Android/Sdk"
export PATH="$PATH:$ANDROID_SDK_ROOT/platform-tools/"
export PATH="$PATH:$ANDROID_SDK_ROOT/emulator/"

5
.bash/system/bin.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
[[ -d "$HOME/.local/bin" ]] && \
export PATH="$HOME/.local/bin:$PATH"
export PATH="$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts"
export PATH="$PATH:$HOME/.lmstudio/bin"

5
.bash/system/gui.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
export APPMENU_DISPLAY_BOTH=1
[[ -z "$UBUNTU_MENUPROXY" ]] && \
export UBUNTU_MENUPROXY=1
export GTK_MODULES UBUNTU_MENUPROXY

9
.bash/system/index.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# System configuration index
# Source all system-related configuration files
declare dir="$BASH_DOTFILES/system"
for file in "$dir"/*.sh; do
[[ -f "$file" && "$file" != "$dir/index.sh" ]] && source "$file"
done
unset dir

3
.bash/system/java.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
[[ -z "$JAVA_HOME" ]] && \
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/"