Initial commit: Python dotfiles system
This commit is contained in:
39
templates/shell/bashrc.j2
Normal file
39
templates/shell/bashrc.j2
Normal file
@@ -0,0 +1,39 @@
|
||||
# Bash configuration for {{ machine }} ({{ hostname }})
|
||||
# Generated by dotfiles system
|
||||
|
||||
# History settings
|
||||
HISTSIZE=10000
|
||||
HISTFILESIZE=20000
|
||||
HISTCONTROL=ignoreboth
|
||||
|
||||
# Aliases
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
{% if machine == 'server' %}
|
||||
# Server-specific settings
|
||||
alias logs='sudo journalctl -f'
|
||||
alias status='systemctl status'
|
||||
{% elif machine == 'desktop' %}
|
||||
# Desktop-specific settings
|
||||
alias open='xdg-open'
|
||||
alias screenshot='gnome-screenshot'
|
||||
{% endif %}
|
||||
|
||||
# User-specific settings
|
||||
export EDITOR=vim
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
# Machine-specific additions
|
||||
{% if machine == 'laptop' %}
|
||||
# Laptop power settings
|
||||
alias hibernate='systemctl hibernate'
|
||||
alias suspend='systemctl suspend'
|
||||
{% endif %}
|
||||
|
||||
# Load local bashrc if it exists
|
||||
if [ -f ~/.bashrc.local ]; then
|
||||
source ~/.bashrc.local
|
||||
fi
|
||||
Reference in New Issue
Block a user