mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
24 lines
613 B
Plaintext
24 lines
613 B
Plaintext
#
|
|
# /etc/bash.bashrc
|
|
#
|
|
|
|
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
PS1='[\u@\h \W]\$ '
|
|
PS2='> '
|
|
PS3='> '
|
|
PS4='+ '
|
|
|
|
case ${TERM} in
|
|
xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
|
|
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
|
|
|
|
;;
|
|
screen)
|
|
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
|
|
;;
|
|
esac
|
|
|
|
[ -r /etc/bash_completion ] && . /etc/bash_completion
|