Files
stormux/x86_64/airootfs/etc/skel.stormux/.bashrc
2025-11-29 03:54:28 -05:00

44 lines
930 B
Bash

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Change directories without using cd
shopt -s autocd
# Load aliases and functions if they exist
[[ -f "$HOME/.bash_aliases" ]] && . "$HOME/.bash_aliases"
[[ -f "$HOME/.bash_functions" ]] && . "$HOME/.bash_functions"
# Environment variables
export QT_ACCESSIBILITY=1
export QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
# Set prompt
PS1='[\u@\h \W] \$ '
# Dialog accessibility options
export DIALOGOPTS='--no-lines --visit-items'
# Browser selection based on environment
if [[ -z "$DISPLAY" ]]; then
export BROWSER=w3m
fi
# GPG TTY
GPG_TTY=$(tty)
export GPG_TTY
# Don't put commands prefixed with space, or duplicate commands in history
export HISTCONTROL=ignoreboth
# Increase history size
export HISTSIZE=10000
export HISTFILESIZE=20000
# Add user's local bin directories to PATH
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
export PATH