From 587496b6815d07518db16c9b4d3ed2f4b7bfa834 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 22 Nov 2022 21:17:35 -0500 Subject: [PATCH] Added flag for generating .xinitrc and .xprofile. --- i38.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/i38.sh b/i38.sh index f77a608..df1b3f0 100755 --- a/i38.sh +++ b/i38.sh @@ -128,6 +128,7 @@ fi # Array of command line arguments declare -A command=( [h]="This help screen." + [x]="Generate ~/.xinitrc and ~/.xprofile." ) # Convert the keys of the associative array to a format usable by getopts @@ -136,15 +137,11 @@ args="${args//[[:space:]]/}" while getopts "${args}" i ; do case "$i" in h) help;; + x) write_xinitrc esac done -# Create .xinitrc file if requested -if [[ "$1" = "-x" || "$1" = "--xinitrc" ]]; then -write_xinitrc -exit 0 -fi # Make sure rc variable is empty unset rc # Set path for helper scripts.