mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
Don't show when dropbox is not running
This commit is contained in:
parent
81cbd65142
commit
985dac910c
1 changed files with 2 additions and 2 deletions
|
@ -1428,8 +1428,8 @@ prompt_dropbox() {
|
||||||
# The first column is just the directory, so cut it
|
# The first column is just the directory, so cut it
|
||||||
local dropbox_status="$(dropbox-cli filestatus . | cut -d\ -f2-)"
|
local dropbox_status="$(dropbox-cli filestatus . | cut -d\ -f2-)"
|
||||||
|
|
||||||
# Only show if the folder is tracked
|
# Only show if the folder is tracked and dropbox is running
|
||||||
if [[ "$dropbox_status" != 'unwatched' ]]; then
|
if [[ "$dropbox_status" != 'unwatched' && "$dropbox_status" != "isn't running!" ]]; then
|
||||||
# If "up to date", only show the icon
|
# If "up to date", only show the icon
|
||||||
if [[ "$dropbox_status" =~ 'up to date' ]]; then
|
if [[ "$dropbox_status" =~ 'up to date' ]]; then
|
||||||
dropbox_status=""
|
dropbox_status=""
|
||||||
|
|
Loading…
Reference in a new issue