Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
heldderarbeit opened this issue Aug 25, 2023 · 1 comment
Open

Comments

@heldderarbeit
Copy link

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
Copy link

test230977 commented Jan 20, 2024

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 '━')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants