25 lines
682 B
Plaintext
25 lines
682 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_STATE_HOME=/tmp/.local/state
|
|
|
|
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
|