From 0d6bbdf1ae13b9e250685853fa847f40e8563f99 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 5 Dec 2020 21:20:27 +0100 Subject: Add a ~/.bashrc file for the user --- make_slackware_live.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3