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 33HELPERS=(
44 colors animation banner package switchcase
55 dotfiles clone themes nvchad utility
6- stat signal cursor finish
6+ stat signal screen cursor finish
77)
88
99for HELPER in ${HELPERS[@]} ; do
@@ -37,23 +37,4 @@ function main() {
3737
3838}
3939
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