summaryrefslogtreecommitdiffhomepage
path: root/once/etc
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-01-18 16:03:15 -0500
committermidipix <writeonce@midipix.org>2019-01-18 16:03:15 -0500
commit5b2231cf4f7b46b2cd883d15d34acec4db18cf56 (patch)
treef8a11e09a83367586e878954c90b3139452cfd1d /once/etc
parent88a2f37913ae9350d4ed40419ffb2c41c28f5123 (diff)
downloadmpackage-5b2231cf4f7b46b2cd883d15d34acec4db18cf56.tar.bz2
mpackage-5b2231cf4f7b46b2cd883d15d34acec4db18cf56.tar.xz
distro: use login(1) rather than /etc/init.sh.
Diffstat (limited to 'once/etc')
-rwxr-xr-xonce/etc/init.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/once/etc/init.sh b/once/etc/init.sh
new file mode 100755
index 0000000..ab9b8d7
--- /dev/null
+++ b/once/etc/init.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+cd /
+
+export HOME=/home/$(whoami)
+export PATH=$HOME/.local/bin:/local/sbin:/local/bin:/sbin:/bin
+
+if [ "$TERM" = xterm ]; then
+ export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
+else
+ export PS1='\n\w \$ '
+fi
+
+if [ -x /bin/dircolors ]; then
+ alias ls='ls --color=auto'
+ alias grep='grep --color=auto'
+ alias fgrep='fgrep --color=auto'
+ alias egrep='egrep --color=auto'
+fi
+
+alias ll='ls -alF'
+alias la='ls -A'
+alias l='ls -CF'