We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 274d7e6 commit 358c8c1Copy full SHA for 358c8c1
bin/sr3d
@@ -30,7 +30,13 @@ if [[ "$action" == "convert" ]] ; then
30
exit "$?"
31
fi
32
33
-sr3r "sr3 $*"
+# Pass COLUMNS env var so show knows the correct terminal width
34
+# and doesn't default to 80 characters wide.
35
+if [[ "$action" == "show" ]]; then
36
+ pre="export COLUMNS=$(tput cols); "
37
+fi
38
+
39
+sr3r "${pre}sr3 $*"
40
41
# Special cases for certain actions AFTER running on nodes
42
if [[ "$action" == "remove" ]] ; then
0 commit comments