paradox460 / paradox-theme

My terminal theme
MIT License
15 stars 0 forks source link

Error when running on Arch ("Missing argument at index 3") #3

Open heldderarbeit opened 1 year ago

heldderarbeit commented 1 year ago

I'm on Arch, fish 3.6.1-1 and installed the theme with fisher. On starting a terminal, I get:

test: Missing argument at index 3
= light
        ^
~/.config/fish/functions/paradox_change_color_scheme.fish (line 21): 
  if test $scheme = "light"
     ^
in function 'paradox_change_color_scheme'
    called on line 58 of file ~/.config/fish/conf.d/paradox_colors.fish
from sourcing file ~/.config/fish/conf.d/paradox_colors.fish
    called on line 248 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
    called during startup

Changing the line

if test $scheme = "light"

to

if test "$scheme" = "light"

seems to prevent this error from occuring.

test230977 commented 7 months ago

I replaced this: if test $scheme = "light" with this: if test $scheme -e "light" and it works for me :)

Also I removed one extra row before separator in conf.d/paradox_command_separator.fish replaced: echo -s \n$status_color $status_prefix (string repeat -n $width '━') with: echo -s $status_color $status_prefix (string repeat -n $width '━')