commit 43699fd21f9d013d03fe78624ab3e45b274b11d7
parent a11fa9f4923f9dd6866ce4447ff6601d5e570697
Author: Brian Mayer <bleemayer@gmail.com>
Date: Mon, 16 Aug 2021 19:46:26 -0300
Merge pull request #2 from sotpapathe/fix-options
Fix the command line options
Diffstat:
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/astro b/astro
@@ -265,12 +265,6 @@ EOF
# Execution
export LESS='-P Keys\: qgrbosHmM, to see a description run astro -h'
-# Save terminal
-tput smcup
-
-# Restore terminal
-trap "tput rmcup && exit" EXIT INT HUP
-
# Parse arguments
args="$*"
case "$args" in
@@ -284,6 +278,12 @@ case "$args" in
;;
esac
+# Save terminal
+tput smcup
+
+# Restore terminal
+trap "tput rmcup && exit" EXIT INT HUP
+
# Configuration
mkdir -p "$HOME/.config/astro"
configfile="$HOME/.config/astro/astro.conf"