2024-03-15 01:32:32 +01:00
|
|
|
#
|
|
|
|
# /etc/bash.bashrc
|
|
|
|
#
|
|
|
|
|
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
|
|
|
[[ $DISPLAY ]] && shopt -s checkwinsize
|
|
|
|
|
|
|
|
PS1='[\u@\h \W]\$ '
|
|
|
|
|
|
|
|
case ${TERM} in
|
|
|
|
Eterm*|alacritty*|aterm*|foot*|gnome*|konsole*|kterm*|putty*|rxvt*|tmux*|xterm*)
|
|
|
|
PROMPT_COMMAND+=('printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')
|
|
|
|
|
|
|
|
;;
|
|
|
|
screen*)
|
|
|
|
PROMPT_COMMAND+=('printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if [[ -r /usr/share/bash-completion/bash_completion ]]; then
|
|
|
|
. /usr/share/bash-completion/bash_completion
|
|
|
|
fi
|
2024-03-15 02:49:52 +01:00
|
|
|
|
2024-03-15 01:32:32 +01:00
|
|
|
source /etc/jstmbash/init.source
|
2024-03-15 02:49:52 +01:00
|
|
|
env "BASHRC=true" sysdotfiles-updatechecker
|