Files
security-command.org/sandbox/etc/bash.bashrc
T

27 lines
802 B
Plaintext

[ -z "$PS1" ] && return
shopt -s checkwinsize histappend
HISTSIZE=1000
HISTCONTROL=ignoredups
# The home directory is the read only content, so state goes to /tmp.
HISTFILE=/tmp/.bash_history
export LESSHISTFILE=-
export XDG_CONFIG_HOME=/tmp/.config
export XDG_CACHE_HOME=/tmp/.cache
export XDG_DATA_HOME=/tmp/.local/share
export XDG_STATE_HOME=/tmp/.local/state
mkdir -p "$XDG_CONFIG_HOME" "$XDG_CACHE_HOME" "$XDG_DATA_HOME" "$XDG_STATE_HOME"
PS1='\[\e[1;31m\]\u@\h\[\e[0m\]:\[\e[1;34m\]\w\[\e[0m\]\$ '
alias ls='ls --color=auto'
alias ll='ls -lah --color=auto'
alias grep='grep --color=auto'
# The content may carry small scripts, which take precedence over the built in ones.
PATH="$HOME/.local/bin:$PATH"
# Only the first shell of a session greets the visitor.
[[ $SHLVL == 1 ]] && fastfetch