Skip to content

Instantly share code, notes, and snippets.

@CallumHoward
Created August 22, 2017 20:59
Show Gist options
  • Save CallumHoward/4511e1a2adcc1c1676bbd5496a58bccf to your computer and use it in GitHub Desktop.
Save CallumHoward/4511e1a2adcc1c1676bbd5496a58bccf to your computer and use it in GitHub Desktop.
+ verbose=on
+ shift
+ [[ -n '' ]]
+ get_distro
+ get_bold
+ case "$ascii_bold" in
+ ascii_bold='\033[1m'
+ case "$bold" in
+ bold='\033[1m'
+ get_distro_colors
+ case "$ascii_distro" in
+ set_colors 2 1
++ color 2
++ case "$1" in
++ printf %b '\033[0m\033[32m'
+ c1='\033[1m'
++ color 1
++ case "$1" in
++ printf %b '\033[0m\033[31m'
+ c2='\033[1m'
++ color ''
++ case "$1" in
++ printf %b '\033[38;5;m'
+ c3='\033[1m'
++ color ''
++ case "$1" in
++ printf %b '\033[38;5;m'
+ c4='\033[1m'
++ color ''
++ case "$1" in
++ printf %b '\033[38;5;m'
+ c5='\033[1m'
++ color ''
++ case "$1" in
++ printf %b '\033[38;5;m'
+ c6='\033[1m'
+ [[ '' != \o\f\f ]]
+ set_text_colors 2 1
+ [[ distro == \d\i\s\t\r\o ]]
++ color 2
++ case "$1" in
++ printf %b '\033[0m\033[32m'
+ title_color=''
+ at_color='\033[0m'
+ underline_color='\033[0m'
++ color 1
++ case "$1" in
++ printf %b '\033[0m\033[31m'
+ subtitle_color=''
+ colon_color='\033[0m'
+ info_color='\033[0m'
+ (( 2 == 8 ))
+ (( 1 == 8 ))
+ (( 1 == 7 ))
+ (( 2 == 7 ))
+ [[ distro == \d\i\s\t\r\o ]]
++ color fg
++ case "$1" in
++ printf %b '\033[37m\033[0m'
+ bar_color_elapsed=''
+ case "$bar_color_total $1" in
++ color 1
++ case "$1" in
++ printf %b '\033[0m\033[31m'
+ bar_color_total=''
+ ascii_file=raspbian
+ [[ distro != \d\i\s\t\r\o ]]
+ [[ screen-256color != \m\i\n\i\x ]]
+ trap 'printf "\033[?25h\033[?7h"' EXIT
+ printf '\033[?25l\033[?7l'
[?25l[?7l+ image_backend
+ [[ ! ascii =~ ^(off|ascii)$ ]]
+ case "${image_backend:-off}" in
+ get_ascii
+ [[ ! -f auto ]]
+ [[ ! auto =~ ^(auto|ascii)$ ]]
+ [[ auto =~ \.(png|jpg|jpe|jpeg|gif)$ ]]
+ [[ -d /usr/share/neofetch/ascii/distro ]]
+ [[ -d /usr/local/share/neofetch/ascii/distro ]]
+ [[ -d /data/data/com.termux/files/usr/share/neofetch/ascii/distro ]]
+ [[ -d /boot/home/config/non-packaged/share/neofetch/ascii/distro ]]
+ [[ -z /home/linuxbrew/.linuxbrew/Cellar/neofetch/3.2.0/bin/neofetch ]]
+ ascii_dir=/home/linuxbrew/.linuxbrew/Cellar/neofetch/3.2.0/bin/ascii/distro
+ image_source=/home/linuxbrew/.linuxbrew/Cellar/neofetch/3.2.0/bin/ascii/distro/raspbian
+ [[ ! -f /home/linuxbrew/.linuxbrew/Cellar/neofetch/3.2.0/bin/ascii/distro/raspbian ]]
+ to_off 'Ascii: Failed to find distro ascii, falling back to no ascii mode.'
+ err 'Ascii: Failed to find distro ascii, falling back to no ascii mode.'
++ color 1
++ case "$1" in
++ printf %b '\033[0m\033[31m'
+ err+='[!]\033[0m Ascii: Failed to find distro ascii, falling back to no ascii mode.\n'
+ image_backend=off
+ text_padding=
+ return
+ [[ off != \o\f\f ]]
+ old_functions
+ type printinfo
+ get_cache_dir
+ case "$os" in
+ cache_dir=/tmp
+ print_info
pi@raspberrypi
--------------
OS: Raspbian GNU/Linux 8.0 (jessie) on Chrome OS armv6l
Model: Raspberry Pi Model B Rev 2
Kernel: 4.9.35+
Uptime: 10 days, 12 hours, 2 mins
Packages: 460
Shell: zsh 5.0.7
Terminal: /dev/pts/0
CPU: ARMv6-compatible processor rev 7 (v6l) (1) @ 7.00GHz
Memory: 58MiB / 434MiB
        
        
+ dynamic_prompt
+ case "$image_backend" in
+ return
+ [[ off == *w3m* ]]
+ [[ off == \o\n ]]
+ [[ on == \o\n ]]
+ printf %b '[!]\033[0m Config: Default config not found, continuing...\n[!]\033[0m Config: Sourced user config. (/home/pi/.config/neofetch/config)\n[!]\033[0m Ascii: Failed to find distro ascii, falling back to no ascii mode.\n[!]\033[0m Info: Couldn'\''t detect Resolution.\n[!]\033[0m Info: Couldn'\''t detect DE.\n[!]\033[0m Info: Couldn'\''t detect WM.\n[!]\033[0m Info: Couldn'\''t detect WM Theme.\n[!]\033[0m Info: Couldn'\''t detect Theme.\n[!]\033[0m Info: Couldn'\''t detect Icons.\n[!]\033[0m Info: Couldn'\''t detect Terminal Font.\n[!]\033[0m Info: Couldn'\''t detect GPU.\n'
[!] Config: Default config not found, continuing...
[!] Config: Sourced user config. (/home/pi/.config/neofetch/config)
[!] Ascii: Failed to find distro ascii, falling back to no ascii mode.
[!] Info: Couldn't detect Resolution.
[!] Info: Couldn't detect DE.
[!] Info: Couldn't detect WM.
[!] Info: Couldn't detect WM Theme.
[!] Info: Couldn't detect Theme.
[!] Info: Couldn't detect Icons.
[!] Info: Couldn't detect Terminal Font.
[!] Info: Couldn't detect GPU.
+ [[ off == \o\n ]]
+ return 0
+ printf '\033[?25h\033[?7h'
[?25h[?7h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment