mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +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\]"
|
if [ -n "$BASH_VERSION" ] && [ -r /etc/bashrc ]; then
|
||||||
RED="\[\e[1;31m\]"
|
. /etc/bashrc
|
||||||
GREEN="\[\e[1;32m\]"
|
fi
|
||||||
BLUE="\[\e[1;36m\]"
|
|
||||||
WHITE="\[\e[1;37m\]"
|
|
||||||
PS1="$GREEN\u$NORMAL@$BLUE\h$NORMAL:$WHITE\w$NORMAL>"
|
|
||||||
|
|
||||||
alias ls="ls --color=auto"
|
alias ls="ls --color=auto"
|
||||||
alias grep="grep --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" ]
|
if [ $(tty) == "/dev/console" ]
|
||||||
then
|
then
|
||||||
alias startwm="exec /usr/libexec/astral/startwm"
|
alias startwm="exec /usr/libexec/astral/startwm"
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
|
# /etc/shells
|
||||||
/usr/bin/bash
|
/usr/bin/bash
|
||||||
/bin/sh
|
/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
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
name=distro-files
|
name=distro-files
|
||||||
revision=3
|
revision=6
|
||||||
from_source=distro-files
|
from_source=distro-files
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|||||||
Reference in New Issue
Block a user