mirror of
https://github.com/Snigdha-OS/snigdhaos-archiso.git
synced 2025-09-06 04:35:15 +02:00
🔧 build: upload default bash file
This commit is contained in:
22
archiso/airootfs/etc/bash.bashrc
Normal file
22
archiso/airootfs/etc/bash.bashrc
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
#
|
||||||
|
# /etc/bash.bashrc
|
||||||
|
#
|
||||||
|
|
||||||
|
# If not running interactively, don't do anything
|
||||||
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
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
|
Reference in New Issue
Block a user