File tree Expand file tree Collapse file tree 2 files changed +28
-21
lines changed Expand file tree Collapse file tree 2 files changed +28
-21
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ function screenSize() {
4
+
5
+ COLS=$( echo $COLUMNS )
6
+ ROWS=$( echo $LINES )
7
+
8
+ if [[ -n ${COLS} && -n ${ROWS} ]]; then
9
+
10
+ if (( ${COLS} >= 101 & ${ROWS} >= 39 )) ; then
11
+
12
+ ${1}
13
+
14
+ else
15
+
16
+ echo -e " [ ${COLOR_WARNING} ERROR${COLOR_BASED} ] > Please ${COLOR_WARNING} zoom out${COLOR_BASED} your Terminal Screen!"
17
+
18
+ fi
19
+
20
+ else
21
+
22
+ echo -e " [ ${COLOR_WARNING} ERROR${COLOR_BASED} ] > Please run '${COLOR_WARNING} export COLUMNS LINES${COLOR_BASED} ' first and then run again!"
23
+
24
+ fi
25
+
26
+ }
Original file line number Diff line number Diff line change 3
3
HELPERS=(
4
4
colors animation banner package switchcase
5
5
dotfiles clone themes nvchad utility
6
- stat signal cursor finish
6
+ stat signal screen cursor finish
7
7
)
8
8
9
9
for HELPER in ${HELPERS[@]} ; do
@@ -37,23 +37,4 @@ function main() {
37
37
38
38
}
39
39
40
- COLS=$( echo $COLUMNS )
41
- ROWS=$( echo $LINES )
42
-
43
- if [[ -n ${COLS} && -n ${ROWS} ]]; then
44
-
45
- if (( ${COLS} >= 101 & ${ROWS} >= 39 )) ; then
46
-
47
- main
48
-
49
- else
50
-
51
- stat " ERROR" " Warning" " Please zoom out your Terminal Screen!"
52
-
53
- fi
54
-
55
- else
56
-
57
- stat " ERROR" " Danger" " Please run 'export COLUMNS LINES' first and then run again!"
58
-
59
- fi
40
+ screenSize main
You can’t perform that action at this time.
0 commit comments