joshmedeski / dotfiles

Josh's dotfiles for his developer environment
https://dotfiles.joshmedeski.com
373 stars 33 forks source link

Wezterm config not working on MacOS #18

Closed dablurr closed 4 months ago

dablurr commented 4 months ago

Hey Josh,

Stumbled upon your video and wanted to give it a try moving on from Alacritty to Wezterm.

Went ahead and duplicated your config for wez. Therefore, I am having the following issue :

runtime error: /.config/wezterm/utils/helpers.lua:9: bad argument
#1 to 'random' (interval is empty)
stack traceback:
        [C]: in function 'math.random'
        /.config/wezterm/utils/helpers.lua:9: in function 'utils/
helpers.get_random_entry'
        /.config/wezterm/utils/wallpaper.lua:12: in function 'utils/
wallpaper.get_wallpaper'
        [string "/.config/wezterm/wezterm.lua"]:38: in main chunk

Does it rings a bell to you ?

Config is identical to the one from this repo.

Cheers Josh

joshmedeski commented 4 months ago

You'll want to make sure the wallpaper logic is pointing to a valid path on your machine with image files inside.

https://github.com/joshmedeski/dotfiles/blob/90bb7e4393fa797e374d970c18705660a16ff593/.config/wezterm/wezterm.lua?plain=1#L23

dablurr commented 4 months ago

You were right indeed. Working now. Thanks Josh 👏

joshmedeski commented 4 months ago

You're welcome, hope you enjoy Wezterm!