Merge branch 'master' of github.com:dylanaraps/neofetch

This commit is contained in:
Dylan Araps 2018-05-24 16:51:34 +10:00
commit 0f0d9aa84f
2 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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<profiles_count; i++)); do
profile_name="$(PlistBuddy -c "Print :New\ Bookmarks:${i}:Name:" "$font_file")"
if [[ "$profile_name" == "$current_profile_name" ]]; then