Yash-Handa / logo-ls

Modern ls command with vscode like File Icon and Git Integrations. Written in Golang
MIT License
1.13k stars 46 forks source link

BROKEN LOGOS : SOLUTION HERE #49

Open orhnk opened 1 year ago

orhnk commented 1 year ago
curl https://raw.githubusercontent.com/UTFeight/logo-ls-modernized/master/INSTALL | bash

Here is a small script that I wrote to install Latest Nerd Fonts (3.xx) compatible logo-ls

Requires

Actual fixes are done in this PR Many thanks to the Author Manuth

mauro-arcelles commented 9 months ago

Thanks!

fernandoccandidoo commented 9 months ago

I run the script here and the icons are still broken, in the result it points out some lines with errors...

~#@❯ sudo curl https://raw.githubusercontent.com/UTFeight/logo-ls-modernized/master/INSTALL | bash ❮ 1s 591ms % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 458 100 458 0 0 6997 0 --:--:-- --:--:-- --:--:-- 7046 ---- Installing logo-ls for modern Nerd Fonts ----

Cloning Repo Cloning into 'logo-ls-modernized'... remote: Enumerating objects: 596, done. remote: Counting objects: 100% (596/596), done. remote: Compressing objects: 100% (266/266), done. remote: Total 596 (delta 305), reused 589 (delta 301), pack-reused 0 Receiving objects: 100% (596/596), 7.78 MiB | 22.36 MiB/s, done. Resolving deltas: 100% (305/305), done.

Building Project bash: line 12: go: command not found bash: line 13: go: command not found

Adding logo-ls to PATH This operation requires sudo acces prompting now mv: cannot stat 'logo-ls': No such file or directory

Cleaning Repo

Done!

image

orhnk commented 9 months ago

I run the script here and the icons are still broken, in the result it points out some lines with errors...

~#@❯ sudo curl https://raw.githubusercontent.com/UTFeight/logo-ls-modernized/master/INSTALL | bash ❮ 1s 591ms % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 458 100 458 0 0 6997 0 --:--:-- --:--:-- --:--:-- 7046 ---- Installing logo-ls for modern Nerd Fonts ----

Cloning Repo Cloning into 'logo-ls-modernized'... remote: Enumerating objects: 596, done. remote: Counting objects: 100% (596/596), done. remote: Compressing objects: 100% (266/266), done. remote: Total 596 (delta 305), reused 589 (delta 301), pack-reused 0 Receiving objects: 100% (596/596), 7.78 MiB | 22.36 MiB/s, done. Resolving deltas: 100% (305/305), done.

Building Project bash: line 12: go: command not found bash: line 13: go: command not found

Adding logo-ls to PATH This operation requires sudo acces prompting now mv: cannot stat 'logo-ls': No such file or directory

Cleaning Repo

Done!

image

you don't have go installed that's why script fails

I'm assuming you're using ubuntu (or any other debian flavored distro) here is what you need to do:

$ sudo apt update && sudo apt install golang-go -y

[!NOTE] The preceding $ character indicates that command ment to run in your shell (e.g bash)

ISaIGoI commented 7 months ago

I run the script here and the icons are still broken, in the result it points out some lines with errors... ~#@❯ sudo curl https://raw.githubusercontent.com/UTFeight/logo-ls-modernized/master/INSTALL | bash ❮ 1s 591ms % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 458 100 458 0 0 6997 0 --:--:-- --:--:-- --:--:-- 7046 ---- Installing logo-ls for modern Nerd Fonts ---- Cloning Repo Cloning into 'logo-ls-modernized'... remote: Enumerating objects: 596, done. remote: Counting objects: 100% (596/596), done. remote: Compressing objects: 100% (266/266), done. remote: Total 596 (delta 305), reused 589 (delta 301), pack-reused 0 Receiving objects: 100% (596/596), 7.78 MiB | 22.36 MiB/s, done. Resolving deltas: 100% (305/305), done. Building Project bash: line 12: go: command not found bash: line 13: go: command not found Adding logo-ls to PATH This operation requires sudo acces prompting now mv: cannot stat 'logo-ls': No such file or directory Cleaning Repo Done! image

you don't have go installed that's why script fails

I'm assuming you're using ubuntu (or any other debian flavored distro) here is what you need to do:

$ sudo apt update && sudo apt install golang-go -y

Note

The preceding $ character indicates that command ment to run in your shell (e.g bash)

Screenshot 2023-11-21 191916 Screenshot 2023-11-21 181448 Screenshot 2023-11-21 191916

isaacotto commented 7 months ago

This fix worked spectacularly for me, thank you!

Just for edification of this hapless noob (me) , could you explain what the fix is actually doing? Did the codepoints change in the new Nerdfonts? Or are they organized entirely differently?

Thanks :)

orhnk commented 7 months ago

@ISaIGoI bro read the error.

It says mv no such file or directory. I assume that's because your OS. The script that I wrote simply moves logo-ls to your $PATH by moving the binary to /usr/bin/ which in this case, failed. You just need to figure out how to move the executable to $PATH. If you need the complete script, remove | bash postfix from the oneliner that's on the main thread comment.

orhnk commented 7 months ago

This fix worked spectacularly for me, thank you!

Just for edification of this hapless noob (me) , could you explain what the fix is actually doing? Did the codepoints change in the new Nerdfonts? Or are they organized entirely differently?

Thanks :)

curl https://raw.githubusercontent.com/UTFeight/logo-ls-modernized/master/INSTALL 

This will give you the main script that installs logo-ls

If you want more info furthermore, check the PR that is merged to the cloned repo (in the script)

MarianaIshak commented 2 months ago

Thank you @orhnk , this worked perfectly! I was struggling with this for a while, glad it's fixed now, really appreciate it <3