From f4e96993d54b6aa1477799aa92608c0aefedbbee Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 19 Aug 2016 10:09:35 +1000 Subject: [PATCH] Move functions around --- neofetch | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/neofetch b/neofetch index 9631ec79..2f6e2855 100755 --- a/neofetch +++ b/neofetch @@ -3012,6 +3012,11 @@ main() { getos getdefaultconfig 2>/dev/null getargs "$@" + getdistro + + # Get colors and bold + bold + colors # Restore cursor and clear screen on ctrl+c trap 'printf "\033[?25h"; clear; exit' 2 @@ -3019,13 +3024,6 @@ main() { # If the script exits for any reason, unhide the cursor. trap 'printf "\033[?25h"' EXIT - # Distro detection - getdistro - - # Get colors and bold - bold - colors - # Clear the scren clear