diff --git a/CHANGELOG.md b/CHANGELOG.md index a630cf99..b75694cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - [ascii] Fixed a bug causing Windows 7 ASCII art to not display. - [image] Added new option to configure the resolution of `catimg`. +- [font] Fix iTerm2 checking for 2 extra profiles that don't exist. [**@iandrewt**](https://github.com/iandrewt") ## [4.0.2] - 2018-05-19 diff --git a/neofetch b/neofetch index 0b3bf650..82b0b5c8 100755 --- a/neofetch +++ b/neofetch @@ -2328,7 +2328,7 @@ get_song() { -e "exaile" \ -e "gnome-music" \ -e "guayadeque" \ - -e "iTunes$" \ + -e "iTunes" \ -e "juk" \ -e "lollypop" \ -e "mocp" \ @@ -2800,9 +2800,10 @@ END font_file="${HOME}/Library/Preferences/com.googlecode.iterm2.plist" # Count Guids in "New Bookmarks"; they should be unique - profiles_count="$(PlistBuddy -c "Print :New\ Bookmarks:" "$font_file" | grep -c "Guid")" + profiles_count="$(PlistBuddy -c "Print :New\ Bookmarks:" "$font_file" | \ + grep -w -c "Guid")" - for ((i=0; i<=profiles_count; i++)); do + for ((i=0; i