Move functions around
This commit is contained in:
12
neofetch
12
neofetch
@@ -3012,6 +3012,11 @@ main() {
|
|||||||
getos
|
getos
|
||||||
getdefaultconfig 2>/dev/null
|
getdefaultconfig 2>/dev/null
|
||||||
getargs "$@"
|
getargs "$@"
|
||||||
|
getdistro
|
||||||
|
|
||||||
|
# Get colors and bold
|
||||||
|
bold
|
||||||
|
colors
|
||||||
|
|
||||||
# Restore cursor and clear screen on ctrl+c
|
# Restore cursor and clear screen on ctrl+c
|
||||||
trap 'printf "\033[?25h"; clear; exit' 2
|
trap 'printf "\033[?25h"; clear; exit' 2
|
||||||
@@ -3019,13 +3024,6 @@ main() {
|
|||||||
# If the script exits for any reason, unhide the cursor.
|
# If the script exits for any reason, unhide the cursor.
|
||||||
trap 'printf "\033[?25h"' EXIT
|
trap 'printf "\033[?25h"' EXIT
|
||||||
|
|
||||||
# Distro detection
|
|
||||||
getdistro
|
|
||||||
|
|
||||||
# Get colors and bold
|
|
||||||
bold
|
|
||||||
colors
|
|
||||||
|
|
||||||
# Clear the scren
|
# Clear the scren
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user