Commit the accumulated infrastructure work that was living only in the working tree: monitoring stack, emergency access/bot, gyro allocator, grimmory, adguard, backup audit and the OpenCode agent definitions. Also ignore Python bytecode, local archives and Nix/direnv artifacts. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GTocXkGUUazHdKKd3r9k71
62 lines
1.6 KiB
Django/Jinja
62 lines
1.6 KiB
Django/Jinja
# Managed by Ansible: HomeLab unified bash config.
|
|
|
|
export EDITOR="${EDITOR:-vim}"
|
|
export PAGER="${PAGER:-less}"
|
|
export LESS="${LESS:--FRSX}"
|
|
export HISTCONTROL="ignoreboth:erasedups"
|
|
export HISTSIZE=50000
|
|
export HISTFILESIZE=100000
|
|
shopt -s histappend 2>/dev/null || true
|
|
shopt -s checkwinsize 2>/dev/null || true
|
|
|
|
case ":$PATH:" in
|
|
*":$HOME/.local/bin:"*) ;;
|
|
*) export PATH="$HOME/.local/bin:$PATH" ;;
|
|
esac
|
|
|
|
alias ll='ls -alF'
|
|
alias la='ls -A'
|
|
alias l='ls -CF'
|
|
alias grep='grep --color=auto'
|
|
alias ip='ip --color=auto'
|
|
alias df='df -h'
|
|
alias du='du -h'
|
|
alias free='free -h'
|
|
alias ..='cd ..'
|
|
alias ...='cd ../..'
|
|
alias please='sudo $(history -p !!)'
|
|
|
|
alias gs='git status --short --branch'
|
|
alias gd='git diff'
|
|
alias gl='git log --oneline --decorate -10'
|
|
|
|
{% if bash_config_proxy_http_url | default('') | length > 0 %}
|
|
proxy_on() {
|
|
export http_proxy="{{ bash_config_proxy_http_url }}"
|
|
export https_proxy="{{ bash_config_proxy_http_url }}"
|
|
export all_proxy="{{ bash_config_proxy_socks_url }}"
|
|
export HTTP_PROXY="$http_proxy"
|
|
export HTTPS_PROXY="$https_proxy"
|
|
export ALL_PROXY="$all_proxy"
|
|
export no_proxy="localhost,127.0.0.1,::1,192.168.1.0/24"
|
|
export NO_PROXY="$no_proxy"
|
|
}
|
|
|
|
proxy_off() {
|
|
unset http_proxy https_proxy all_proxy HTTP_PROXY HTTPS_PROXY ALL_PROXY no_proxy NO_PROXY
|
|
}
|
|
{% endif %}
|
|
|
|
if command -v systemctl >/dev/null 2>&1; then
|
|
alias sctl='systemctl'
|
|
alias jctl='journalctl'
|
|
fi
|
|
|
|
if [ -n "$PS1" ]; then
|
|
if [ "$(id -u)" -eq 0 ]; then
|
|
PS1='\[\e[31m\]\u@\h\[\e[0m\]:\[\e[34m\]\w\[\e[0m\]# '
|
|
else
|
|
PS1='\[\e[32m\]\u@\h\[\e[0m\]:\[\e[34m\]\w\[\e[0m\]\$ '
|
|
fi
|
|
fi
|