filegithubwget

Download file from github in CLI?


I'm trying to download the tokyo-night-storm.yaml colorscheme file from zellij. I thought that I just could do

wget https://github.com/zellij-org/zellij/blob/main/example/themes/tokyo-night-storm.yaml

but I got the webpage instead of the theme-file. How can I retrieve the just the actual file and not the webpage?


Solution

  • You have to click the

    enter image description here

    raw button, and copy that link (direct link).

    wget https://raw.githubusercontent.com/zellij-org/zellij/main/example/themes/tokyo-night-storm.yaml