mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
distro-files: add .bashrc, /etc/bashrc, move ps1 handling to it and fix xterm /etc/shells
This commit is contained in:
@@ -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>"
|
||||
@@ -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,2 +1,3 @@
|
||||
# /etc/shells
|
||||
/usr/bin/bash
|
||||
/bin/sh
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
if [ -r /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
@@ -0,0 +1,3 @@
|
||||
if [ -r /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
@@ -0,0 +1,3 @@
|
||||
if [ -r /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
Reference in New Issue
Block a user