distro-files: add .bashrc, /etc/bashrc, move ps1 handling to it and fix xterm /etc/shells

This commit is contained in:
Matheus
2026-06-29 13:03:52 -03:00
parent e9b3a1d562
commit 73ebbde863
7 changed files with 29 additions and 7 deletions
+6
View File
@@ -0,0 +1,6 @@
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
BLUE="\[\e[1;36m\]"
WHITE="\[\e[1;37m\]"
PS1="$GREEN\u$NORMAL@$BLUE\h$NORMAL:$WHITE\w$NORMAL>"
+12 -6
View File
@@ -1,13 +1,19 @@
NORMAL="\[\e[0m\]"
RED="\[\e[1;31m\]"
GREEN="\[\e[1;32m\]"
BLUE="\[\e[1;36m\]"
WHITE="\[\e[1;37m\]"
PS1="$GREEN\u$NORMAL@$BLUE\h$NORMAL:$WHITE\w$NORMAL>"
if [ -n "$BASH_VERSION" ] && [ -r /etc/bashrc ]; then
. /etc/bashrc
fi
alias ls="ls --color=auto"
alias grep="grep --color=auto"
if [ "$(id -u)" = 0 ]; then
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
export PATH="/usr/local/bin:/usr/bin:/bin"
fi
export XDG_DATA_DIRS="/usr/local/share:/usr/share"
export XDG_CONFIG_DIRS="/etc/xdg"
if [ $(tty) == "/dev/console" ]
then
alias startwm="exec /usr/libexec/astral/startwm"
+1
View File
@@ -1,2 +1,3 @@
# /etc/shells
/usr/bin/bash
/bin/sh
+3
View File
@@ -0,0 +1,3 @@
if [ -r /etc/bashrc ]; then
. /etc/bashrc
fi
+3
View File
@@ -0,0 +1,3 @@
if [ -r /etc/bashrc ]; then
. /etc/bashrc
fi
+3
View File
@@ -0,0 +1,3 @@
if [ -r /etc/bashrc ]; then
. /etc/bashrc
fi