Skip to content

Commit

Permalink
fix issue on -ne tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fcamblor committed Jul 5, 2018
1 parent 9f1ac50 commit 53186da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agnoster-fcamblor.zsh-theme
Expand Up @@ -94,7 +94,7 @@ prompt_git() {
behind=""
fi

if [ $behind -ne 0 ] && [ $ahead -ne 0 ]; then
if [[ $behind -ne 0 ]] && [[ $ahead -ne 0 ]]; then
prompt_segment red black
else
if [[ -n $dirty ]]; then
Expand All @@ -121,7 +121,7 @@ prompt_git() {

# Displaying upstream dedicated segment
if [[ -n $remote ]]; then
if [ $behind -ne 0 ]; then
if [[ $behind -ne 0 ]]; then
prompt_segment magenta white
else
prompt_segment cyan black
Expand Down

0 comments on commit 53186da

Please sign in to comment.