← prev | next →
moogiwaraa 2022-09-13 20:35:21
ok thanks 🙂
mendel7 2022-09-13 20:38:06
moogiwaraa 2022-09-13 20:35:21
ok thanks 🙂
hm i just tried and seems like neither work
mendel7 2022-09-13 20:38:18
so weird because i remember being able to
moogiwaraa 2022-09-13 20:38:50
Yeah none of them worked. Currently going on with temp file
marcotrosi 2022-09-13 22:54:56
https://github.com/kdabir/has
GitHub – kdabir/has: ✅ checks presence of various command line tools and their versions on the path –
GitHub✅ checks presence of various command line tools and their versions on the path – GitHub – kdabir/has: ✅ checks presence of various command line tools and their versions on the path
Mike_Went 2022-09-13 23:55:59
marcotrosi 2022-09-13 22:54:56
https://github.com/kdabir/has
oh my god why
Mike_Went 2022-09-13 23:56:39
Mike_Went 2022-09-13 23:57:42
why on earth someone would reinvent the wheel
smol_mazunki 2022-09-14 00:45:47
Mike_Went 2022-09-13 23:57:42
why on earth someone would reinvent the wheel
several reasons:
— it’s nice to see the version
— it’s nice to have have a wrapper which takes care of –version vs -v vs -V
— output is standardized and queriable
— colours are cool
smol_mazunki 2022-09-14 00:47:15
what I’m missing from this is some -a flag to display all versions available in path, ordered by priority in path; and some flag –follow maybe, which displays the full path(s) to the executables (taking care of libexec and stuff like that)
Kueppo 2022-09-14 00:47:59
smol_mazunki 2022-09-14 00:45:47
several reasons:
— it’s nice to see the version
— it’s nice to have have a wrapper which takes care of –version vs -v vs -V
— output is standardized and queriable
— colours are cool
Not really important imo
smol_mazunki 2022-09-14 00:48:20
it’s the same reason i use exa, for example
smol_mazunki 2022-09-14 00:48:30
and ripgrep
Kueppo 2022-09-14 00:48:47
if I want to see my perl version then why not perl -v?
smol_mazunki 2022-09-14 00:48:58
can i get the job done with the original tools? yeah. and it’s important to know how to use them for emergencies
smol_mazunki 2022-09-14 00:49:10
do i still prefer wrappers? yes. a million times yes
smol_mazunki 2022-09-14 00:49:54
Kueppo 2022-09-14 00:48:47
if I want to see my perl version then why not perl -v?
cuz you would need to know whether it’s called perl or perl5 on this distro. and you would also need to know whether it’s -v or –version
smol_mazunki 2022-09-14 00:51:04
also different programs output different formatting for the versioning. having a single tool to parse and standardize the output makes it easy to check for dependencies, eg
Kueppo 2022-09-14 00:53:01
Most of what you can archieve with extra vim plugins can simply be done on the command line interface with gnuutils.
Kueppo 2022-09-14 00:53:13
I only have 3 plugins, my life isn’t complicated at all, works well for any kind of project.
Kueppo 2022-09-14 00:54:21
smol_mazunki 2022-09-14 00:49:54
cuz you would need to know whether it’s called perl or perl5 on this distro. and you would also need to know whether it’s -v or –version
Aaah!! It does not bother me doing that.
Jamerive 2022-09-14 00:58:05
smol_mazunki 2022-09-14 00:45:47
several reasons:
— it’s nice to see the version
— it’s nice to have have a wrapper which takes care of –version vs -v vs -V
— output is standardized and queriable
— colours are cool
This!
Jamerive 2022-09-14 00:58:29
Kueppo 2022-09-14 00:47:59
Not really important imo
For you and that’s ok
Jamerive 2022-09-14 00:58:55
smol_mazunki 2022-09-14 00:48:20
it’s the same reason i use exa, for example
Like a Ls with icons is a killer
Kueppo 2022-09-14 00:59:48
If you want icons then why not using a GUI?
Kueppo 2022-09-14 01:00:50
In my case I don’t need them at all, that’s it.
smol_mazunki 2022-09-14 01:01:19
smol_mazunki 2022-09-14 00:47:15
what I’m missing from this is some -a flag to display all versions available in path, ordered by priority in path; and some flag –follow maybe, which displays the full path(s) to the executables (taking care of libexec and stuff like that)
btw regarding all available bins in path i use whichall which is a wrapper around:
for prog in “$@”; do
while read -d’:’ -r path; do
[ -e “${path}” ] && find “${path}” -name “${prog}*”
done <<< “$PATH”
done
smol_mazunki 2022-09-14 01:01:26
would you call this reinventing the wheel too?
Jamerive 2022-09-14 01:01:28
Kueppo 2022-09-14 00:59:48
If you want icons then why not using a GUI?
Because I want my icons in my terminal? Cause I like it my command fancy? And tecnically is not an icons, it is a character.
Jamerive 2022-09-14 01:01:54
smol_mazunki 2022-09-14 01:01:26
would you call this reinventing the wheel too?
It is
Kueppo 2022-09-14 01:02:05
Jamerive 2022-09-14 01:01:28
Because I want my icons in my terminal? Cause I like it my command fancy? And tecnically is not an icons, it is a character.
unicodes…. mostly of a standard today but icons…. nah.
smol_mazunki 2022-09-14 01:02:10
Jamerive 2022-09-14 01:01:54
It is
how come?
smol_mazunki 2022-09-14 01:02:30

whichall python clang
smol_mazunki 2022-09-14 01:02:53
Kueppo 2022-09-14 01:02:05
unicodes…. mostly of a standard today but icons…. nah.
emoji ARE icons
smol_mazunki 2022-09-14 01:03:06
and part of unicode
← prev | next →