jobcore/bash/system.bashrc

25 lines
605 B
Text
Raw Normal View History

2022-03-20 13:19:37 +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
2023-02-03 01:23:12 +01:00
Eterm*|alacritty*|aterm*|foot*|gnome*|konsole*|kterm*|putty*|rxvt*|tmux*|xterm*)
PROMPT_COMMAND+=('printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')
2022-03-20 13:19:37 +01:00
;;
screen*)
2023-02-03 01:23:12 +01:00
PROMPT_COMMAND+=('printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')
2022-03-20 13:19:37 +01:00
;;
esac
2023-02-03 01:23:12 +01:00
if [[ -r /usr/share/bash-completion/bash_completion ]]; then
. /usr/share/bash-completion/bash_completion
fi