summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-12-05 21:20:27 +0100
committer Eric Hameleers <alien@slackware.com>2020-12-05 21:20:27 +0100
commit0d6bbdf1ae13b9e250685853fa847f40e8563f99 (patch)
tree0c8398126138ab035f3e83876f6ef10c10a2b792 /make_slackware_live.sh
parent287ca61a6be2c090e51f8de960be95d758bac453 (diff)
downloadliveslak-0d6bbdf1ae13b9e250685853fa847f40e8563f99.tar.gz
liveslak-0d6bbdf1ae13b9e250685853fa847f40e8563f99.tar.xz
Add a ~/.bashrc file for the user
Diffstat (limited to '')
-rwxr-xr-xmake_slackware_live.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 4bf2039..10bd23d 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -1630,6 +1630,13 @@ chmod 440 ${LIVE_ROOTDIR}/etc/sudoers
# Add some convenience to the bash shell:
mkdir -p ${LIVE_ROOTDIR}/etc/skel/
+cat << "EOT" > ${LIVE_ROOTDIR}/etc/skel/.bashrc
+# If not running interactively, don't do anything
+[ -z "$PS1" ] && return
+# Check the window size after each command and, if necessary,
+# update the values of LINES and COLUMNS.
+shopt -s checkwinsize
+EOT
cat << "EOT" > ${LIVE_ROOTDIR}/etc/skel/.profile
# Source a .bashrc if it exists:
[[ -r ~/.bashrc ]] && . ~/.bashrc