summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2017-05-01 00:58:57 +0200
committer Eric Hameleers <alien@slackware.com>2017-05-01 00:58:57 +0200
commitbb046a9f25e399a3817cd51f635ddb86e426f29f (patch)
tree3b9b022040a4d4b37eca92fa783d7ff3de4387fd
parent32f9e63f0f4fd10f2db3e26489c20eec646e9f37 (diff)
downloadliveslak-bb046a9f25e399a3817cd51f635ddb86e426f29f.tar.gz
liveslak-bb046a9f25e399a3817cd51f635ddb86e426f29f.tar.xz
Add some convenience to the bash shell environment
Diffstat (limited to '')
-rwxr-xr-xmake_slackware_live.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 422c317..dab9ca3 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1484,6 +1484,22 @@ chown --reference=${LIVE_ROOTDIR}/home/${LIVEUID} ${LIVE_ROOTDIR}/home/${LIVEUID
mkdir -p ${LIVE_ROOTDIR}/usr/share/apps/kdm/pics/users
cp ${LIVE_TOOLDIR}/blueSW-64px.png ${LIVE_ROOTDIR}/usr/share/apps/kdm/pics/users/blues.icon
+# Add some convenience to the bash shell:
+mkdir -p ${LIVE_ROOTDIR}/etc/skel/
+cat << "EOT" > ${LIVE_ROOTDIR}/etc/skel/.profile
+# Source a .bashrc if it exists:
+[[ -r ~/.bashrc ]] && . ~/.bashrc
+
+# Define some useful aliases:
+alias ll="ls -la $LS_OPTIONS"
+lsp() { basename $(ls -1 "/var/log/packages/$@"*) ; }
+alias md="mkdir"
+alias tarview="tar -tvf"
+
+# Ctrl-D should not log us off immediately; now it needs 10 times:
+set -o ignoreeof
+EOT
+
# Give XDM a nicer look:
mkdir -p ${LIVE_ROOTDIR}/etc/X11/xdm/liveslak-xdm
cp -a ${LIVE_TOOLDIR}/xdm/* ${LIVE_ROOTDIR}/etc/X11/xdm/liveslak-xdm/