Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.12 KB | None | 0 0
  1. + verbose=on
  2. + shift
  3. + [[ -n --w3m ]]
  4. + case "$1" in
  5. + image_backend=w3m
  6. + case "$2" in
  7. + image_source=/home/vh/123.jpg
  8. + shift
  9. + [[ -n /home/vh/123.jpg ]]
  10. + case "$1" in
  11. + shift
  12. + [[ -n '' ]]
  13. + get_distro
  14. + get_bold
  15. + case "$ascii_bold" in
  16. + ascii_bold='\033[1m'
  17. + case "$bold" in
  18. + bold='\033[1m'
  19. + get_distro_colors
  20. + case "$ascii_distro" in
  21. + set_colors 1 7 3
  22. ++ color 1
  23. ++ case "$1" in
  24. ++ printf %b '\033[0m\033[31m'
  25. + c1='\033[1m'
  26. ++ color 7
  27. ++ case "$1" in
  28. ++ printf %b '\033[37m\033[0m'
  29. + c2='\033[1m'
  30. ++ color 3
  31. ++ case "$1" in
  32. ++ printf %b '\033[0m\033[33m'
  33. + c3='\033[1m'
  34. ++ color ''
  35. ++ case "$1" in
  36. ++ printf %b '\033[38;5;m'
  37. + c4='\033[1m'
  38. ++ color ''
  39. ++ case "$1" in
  40. ++ printf %b '\033[38;5;m'
  41. + c5='\033[1m'
  42. ++ color ''
  43. ++ case "$1" in
  44. ++ printf %b '\033[38;5;m'
  45. + c6='\033[1m'
  46. + [[ '' != \o\f\f ]]
  47. + set_text_colors 1 7 3
  48. + [[ distro == \d\i\s\t\r\o ]]
  49. ++ color 1
  50. ++ case "$1" in
  51. ++ printf %b '\033[0m\033[31m'
  52. + title_color=''
  53. + at_color='\033[0m'
  54. + underline_color='\033[0m'
  55. ++ color 7
  56. ++ case "$1" in
  57. ++ printf %b '\033[37m\033[0m'
  58. + subtitle_color=''
  59. + colon_color='\033[0m'
  60. + info_color='\033[0m'
  61. + (( 1 == 8 ))
  62. + (( 7 == 8 ))
  63. + (( 7 == 7 ))
  64. ++ color 1
  65. ++ case "$1" in
  66. ++ printf %b '\033[0m\033[31m'
  67. + subtitle_color=''
  68. + (( 1 == 7 ))
  69. + [[ distro == \d\i\s\t\r\o ]]
  70. ++ color fg
  71. ++ case "$1" in
  72. ++ printf %b '\033[37m\033[0m'
  73. + bar_color_elapsed=''
  74. + case "$bar_color_total $1" in
  75. ++ color 7
  76. ++ case "$1" in
  77. ++ printf %b '\033[37m\033[0m'
  78. + bar_color_total=''
  79. + ascii_file=ubuntu
  80. + [[ distro != \d\i\s\t\r\o ]]
  81. + [[ xterm != \m\i\n\i\x ]]
  82. + trap 'printf "\033[?25h\033[?7h"' EXIT
  83. + printf '\033[?25l\033[?7l'
  84. + image_backend
  85. + [[ ! w3m =~ ^(off|ascii)$ ]]
  86. + type -p convert
  87. + case "${image_backend:-off}" in
  88. + get_image_source
  89. + case "$image_source" in
  90. ++ get_full_path /home/vh/123.jpg
  91. ++ [[ -f /home/vh/cava/123.jpg ]]
  92. ++ cd /home/vh
  93. ++ local full_dir=123.jpg
  94. ++ [[ -L 123.jpg ]]
  95. +++ pwd -P
  96. ++ full_dir=/home/vh/123.jpg
  97. ++ [[ -e /home/vh/123.jpg ]]
  98. ++ printf '%s\n' /home/vh/123.jpg
  99. + image_source=/home/vh/123.jpg
  100. + [[ -d /home/vh/123.jpg ]]
  101. + image=/home/vh/123.jpg
  102. + err 'Image: Using image '\''/home/vh/123.jpg'\'''
  103. ++ color 1
  104. ++ case "$1" in
  105. ++ printf %b '\033[0m\033[31m'
  106. + err+='[!]\033[0m Image: Using image '\''/home/vh/123.jpg'\''\n'
  107. + [[ ! -f /home/vh/123.jpg ]]
  108. + get_term_size
  109. + [[ -n '' ]]
  110. + [[ w3m == \t\y\c\a\t ]]
  111. + printf %b '\033[14t\033[c'
  112. + read_flags=(-d c)
  113. + IFS=';'
  114. + read -s -t 1 -d c -r -a term_size
  115. + [[ w3m == \t\y\c\a\t ]]
  116. + term_height=1
  117. + term_width=2
  118. + [[ -z 2 ]]
  119. + [[ -n 2 ]]
  120. + (( term_width >= 1 ))
  121. + clear
  122. + get_image_size
  123. ++ stty size
  124. + term_blocks='49 166'
  125. + columns=166
  126. + lines=49
  127. + font_width=0
  128. + font_height=0
  129. + case "$image_size" in
  130. + image_size=0
  131. + term_height=1
  132. + (( term_height < image_size ))
  133. + width=0
  134. + height=0
  135. /usr/bin/neofetch: line 2387: width / font_width + gap + xoffset/font_width: division by 0 (error token is "font_width + gap + xoffset/font_width")
  136. + printf '\033[?25h\033[?7h'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement