package selections/desktop: add xinitrc, bashrc

master
BodgeMaster 2023-07-21 16:33:31 +02:00
parent 51866628d1
commit 6fb2065909
4 changed files with 35 additions and 6 deletions

View File

@ -1 +1,3 @@
resources/common_packages
resources/xinitrc
resources/bashrc

View File

@ -2,12 +2,15 @@
# ==========
# things to always set up, even for non-interactive shells
# Fuck vi!
EDITOR=nano
# On FreeBSD this is being set for whatever reason in the other shell rc files. I'll leave it here for compatibility.
PAGER=less
# add a user-specific bin directory to PATH
PATH=$HOME/.local/bin:$PATH
if grep -F ".local/bin" <<< "$PATH"; then
true
else
PATH="$HOME/.local/bin:$PATH"
fi
export EDITOR PAGER PATH
# CHECK INTERACTIVE
@ -18,6 +21,14 @@ case $- in
*) return ;;
esac
# START XORG
# ==========
# TODO
# check if login shell
# if yes, check if .xinitrc exists
# if yes, check if xorg is already running
# if no, startx
# ALIASES
# =======
alias aliases="nano $HOME/.bashrc_aliases && source $HOME/.bashrc_aliases"

View File

@ -0,0 +1,18 @@
#!/bin/sh
if grep -F ".local/bin" <<< "$PATH"; then
true
else
PATH="$HOME/.local/bin:$PATH"
fi
export PATH
if [ -d "$HOME/.xinitrc.d" ]; then
for FILE in "$HOME/.xinitrc.d"/*; do
[ -x "$FILE" ] && "$FILE" &
done
fi
# The line below is placed by the package selection script.

View File

@ -1,2 +0,0 @@
#TODO: open user-readme once and then never again
#TODO: check which software selection of Void-USB has been installed and start the appropriate things