cshuaimin / scd

Sync current directory between your shell and a file manager
MIT License
128 stars 0 forks source link

Can'tbuild ebcause of lbsd dependency #1

Closed matklad closed 4 years ago

matklad commented 4 years ago

Hi!

I've tried building this locally on NixOS, but the build failed with ld.lld: error: unable to find library -lbsd. Could perchance this dep be made optional? If not, it might be a good idea to specify this dependency in readme.

cshuaimin commented 4 years ago

Currently I use strmode() from libbsd to convert file modes to symbolic notations. Maybe we can rewrite it?

matklad commented 4 years ago

https://docs.rs/strmode/1.0.0/strmode/ exists. Have no idea if it's any good

cshuaimin commented 4 years ago

Looks exactly what I want. Thank you!

cshuaimin commented 4 years ago

Should be fixed in 11d198c.

matklad commented 4 years ago

Works perfectly, thanks!

image

Btw, if you want to bring this further (as in, write your own shell), you might find my thoughts interesting: https://matklad.github.io/2019/11/16/a-better-shell.html :-)

The TL;DR is that I'd really love to see this kind of text UIs just built into a thing I use to make my computers do stuff.

cshuaimin commented 4 years ago

Great post. In order to improve the command line environment, there are indeed many areas that need improvement. But, uh, writing my own shell is too challenging for me.. Anyway, I'm just a newbie in Rust and programming.

However, I will continuing work on small things like this project, and hope it will make people's lives easier a little.