aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Earley <timmy@earley.de>2017-10-02 15:24:06 +0300
committerTimothy Earley <timmy@earley.de>2017-10-02 15:24:06 +0300
commit985dac910cd52f22aa81de8442f335fd08dbd515 (patch)
tree10727d1af830a458afed51cfdad46a872c23e316
parent81cbd65142609da34f463046abec8ad456440056 (diff)
Don't show when dropbox is not running
-rwxr-xr-xpowerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 792771ac..7770fb0a 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1428,8 +1428,8 @@ prompt_dropbox() {
# The first column is just the directory, so cut it
local dropbox_status="$(dropbox-cli filestatus . | cut -d\ -f2-)"
- # Only show if the folder is tracked
- if [[ "$dropbox_status" != 'unwatched' ]]; then
+ # Only show if the folder is tracked and dropbox is running
+ if [[ "$dropbox_status" != 'unwatched' && "$dropbox_status" != "isn't running!" ]]; then
# If "up to date", only show the icon
if [[ "$dropbox_status" =~ 'up to date' ]]; then
dropbox_status=""