I was recently poking around ~/.local/bin/ when I noticed that it had dozens of executables that I don't remember putting there. Mostly pyside things, but some other scripts as well. I really had to open each to jog my memory, especially about which scripts I had written myself and which were by other people. The idea about starting my own scripts' names with a comma would have made the job go much faster, and I'm su…
Start all of your commands with a comma (2009)
101–110 of 177 posts
Re: Start all of your commands with a comma (2009)
#102Those can really be called comma_nds! Ahem. Nice idea though, I think I'll start using it...
Re: Start all of your commands with a comma (2009)
#103When I read the headline I thought this was going to be a terrible idea but I quite like it, especially the bit about using tab to list all your tooling. Anecdotally I haven’t had many namespaces collisions recently. I’ve also let myself go a bit after going into management. My tech skills are 10 years too old. Any tips from someone else on where they started to be hip again?
Re: Start all of your commands with a comma (2009)
#104An alternative method for avoiding collisions in PATH is to use really long executable names that are unlikely to be used by other executables and then have shorter aliases for them in your bashrc. The aliases won't affect executables called from within scripts and you can still refer to your executables by their long names in your own scripts. One drawback is that this doesn't have the same tab completion ergonomics…
They do in zsh
Re: Start all of your commands with a comma (2009)
#105Those can really be called comma_nds! Ahem. Nice idea though, I think I'll start using it...
Surely ,nds?
I didn't get it at first thought, thinking of the .nds file extension for Nintendo DS ROMs.
Re: Start all of your commands with a comma (2009)
#106Earlier quoted context omitted.
> but then you have to add a shebang line directly to the script itself, which I always feel uncomfortable since it's hard-coded It won’t directly help reach your goal, but it is semi hard-coded. The ‘correct’ (but see https://unix.stackexchange.com/a/29620 for some caveats) way to write a shebang line is #!/usr/bin/env python That will make it run the first python in your path. > what if in future I don't want to ex…
To be excruciatingly correct, we should specify python2 or python3, because they can't interop and probably never will.
Re: Start all of your commands with a comma (2009)
#107Earlier quoted context omitted.
To be excruciatingly correct, we should specify python2 or python3, because they can't interop and probably never will.
I think at this point we can rest easy that python2 has finally been fully purged from default installs. Heck a few weeks ago I installed Kubuntu 24.04 base and there was no Python at all...
Re: Start all of your commands with a comma (2009)
#108Re: Start all of your commands with a comma (2009)
#109When I read the headline I thought this was going to be a terrible idea but I quite like it, especially the bit about using tab to list all your tooling. Anecdotally I haven’t had many namespaces collisions recently. I’ve also let myself go a bit after going into management. My tech skills are 10 years too old. Any tips from someone else on where they started to be hip again?
What I do is make tools to make my life easier. For example, if there's a web service at work I use for mundane lookups I'll find out if it has an API and write a CLI for it to speed up my daily grind. Once it's tuned to my liking I'll share it with the team. I do struggle to convince others to try it. Not sure why. But I don't really care because I use the tools every day.
Re: Start all of your commands with a comma (2009)
#110Earlier quoted context omitted.
It's can be traced back to the roots of each OS. Windows has it's heritage in the land of DOS where files had an 8 character name with a 3 character extension and that extension carried meaning for the OS. Linux being of Unix ancestry which had no such concept as a file extension. It was the responsibility of the application or kernel to discern what type a file was. Typically by the first few bytes of a file and han…
Speaking of heritage... 8+3 goes back at least to DECSystem-10 on PDP-10s.