Skip to content

Commit

Permalink
Bitbar script to show Dropbox conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
eentzel committed May 11, 2017
1 parent 24f01e3 commit 279deeb
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 3rdparty/bitbar_plugins/db_conflicts.5m.sh
@@ -0,0 +1,16 @@
#!/bin/sh

set -euo pipefail

# https://github.com/matryer/bitbar#writing-plugins

conflicts=$(find ~/Dropbox -iname '*conflicted*')
count=$(echo "$conflicts" | wc -l)

if [ "$count" -gt "0" ]; then
echo "${count}|color=red"
echo "---"
echo "${conflicts//$HOME/~}"
else
echo "${count}"
fi

0 comments on commit 279deeb

Please sign in to comment.