From 3ca9da5bc1774b9bd93d8fe98bbf5fb8c8f3ae28 Mon Sep 17 00:00:00 2001 From: zenobit Date: Wed, 12 Apr 2023 13:46:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(dh):=20change=20variable=20n?= =?UTF-8?q?ame=20from=20TERMINAL=20to=20terminal=20The=20variable=20TERMIN?= =?UTF-8?q?AL=20has=20been=20renamed=20to=20terminal=20to=20improve=20cons?= =?UTF-8?q?istency=20with=20the=20naming=20conventions.=20The=20change=20h?= =?UTF-8?q?as=20been=20made=20in=20multiple=20places=20in=20the=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/dh b/dh index af5ae10..f632285 100755 --- a/dh +++ b/dh @@ -72,7 +72,7 @@ do DH_CONFIG_DIR="$(pwd)" DH_ICON_DIR="$(pwd)/icons" portable_prefix='./' - #export "VMS_DIR" "DH_CONFIG_DIR" "DH_ICON_DIR" "TERMINAL" "replace" "portable_prefix" + #export "VMS_DIR" "DH_CONFIG_DIR" "DH_ICON_DIR" "terminal" "replace" "portable_prefix" } function work_in_choosed_dir() { @@ -104,9 +104,9 @@ do DH_ICON_DIR="/usr/share/icons/distrohopper" PATH_PREFIX="/usr/bin/" TMP_DIR="/tmp" - TERMINAL="sakura" + terminal="sakura" replace='"!"' - #export "DH_CONFIG_DIR" "DH_CONFIG" "replace" "DH_ICON_DIR" "PATH_PREFIX" "TMP_DIR" "TERMINAL" + #export "DH_CONFIG_DIR" "DH_CONFIG" "replace" "DH_ICON_DIR" "PATH_PREFIX" "TMP_DIR" "terminal" check_and_set_mode # Set traps to catch the signals and exit gracefully trap "exit" INT @@ -586,56 +586,56 @@ EOF select term in alacritty foot gnome-terminal kitty konsole mate-terminal roxterm sakura st tilix xfce4-terminal xterm custom; do case $term in alacritty) - export TERMINAL=alacritty + export terminal=alacritty break ;; foot) - export TERMINAL=foot + export terminal=foot break ;; gnome-terminal) - export TERMINAL=gnome-terminal + export terminal=gnome-terminal break ;; kitty) - export TERMINAL=kitty + export terminal=kitty break ;; konsole) - export TERMINAL=konsole + export terminal=konsole break ;; mate-terminal) - export TERMINAL=mate-terminal + export terminal=mate-terminal break ;; roxterm) - export TERMINAL=roxterm + export terminal=roxterm break ;; sakura) - export TERMINAL=sakura + export terminal=sakura break ;; st) - export TERMINAL=st + export terminal=st break ;; tilix) - export TERMINAL=tilix + export terminal=tilix break ;; xfce4-terminal) - export TERMINAL=xfce4-terminal + export terminal=xfce4-terminal break ;; xterm) - export TERMINAL=xterm + export terminal=xterm break ;; custom) read -p "Enter the command to launch your preferred terminal emulator: " custom_terminal - export TERMINAL=$custom_terminal + export terminal=$custom_terminal break ;; *) @@ -644,7 +644,7 @@ EOF esac done - echo "Default terminal set to $TERMINAL." + echo "Default terminal set to $terminal." }