- Rewrite .bashrc as minimal loader (34 lines → loads .bashrc.d/*.sh)
- Clean .bash_profile: single source, Apple Silicon/Intel brew path
- Add .bashrc.d/ with 7 topic modules:
00_env.sh PS1, OSTYPE, colors, pyenv
10_aliases.sh universal aliases
20_functions.sh proxy, dbash, git helpers
30_work.sh work-host detection, LDAP, AWX, Juniper tools
(+ unified-hub-login with env-var creds)
40_k8s.sh kubectl completion + aliases
50_ai_env.sh WORKSPACE/DATA_ROOT/MODEL_ROOT paths
60_dotfiles.sh dotfiles manager aliases, zet shortcuts
- Secrets (SN_PASSWORD, LDAP bind PWs, Unified Hub token) moved
to ~/.bashrc.local (gitignored, written by setup script)
- Update .dotfiles_manifest to track .bashrc.d directory
20 lines
767 B
Bash
20 lines
767 B
Bash
#!/usr/bin/env bash
|
|
# 60_dotfiles.sh — Dotfiles manager aliases and git server shortcut
|
|
# ============================================================================
|
|
|
|
export DOTFILES_DIR="$HOME/dotfiles"
|
|
export DOTFILES_REMOTE="http://172.27.0.35:3000/kenjim/dotfiles"
|
|
|
|
# Main command
|
|
alias dotfiles='bash $HOME/scripts/dotfiles_manager.sh'
|
|
alias dot='bash $HOME/scripts/dotfiles_manager.sh'
|
|
|
|
# Quick shortcuts
|
|
alias dots-sync='bash $HOME/scripts/dotfiles_manager.sh sync'
|
|
alias dots-push='bash $HOME/scripts/dotfiles_manager.sh push'
|
|
alias dots-status='bash $HOME/scripts/dotfiles_manager.sh status'
|
|
|
|
# Gitea server shortcut (ssh into the server itself)
|
|
alias zet='ssh zet'
|
|
alias gitea='open http://172.27.0.35:3000 2>/dev/null || echo "http://172.27.0.35:3000"'
|