[-] Schmerzbold@feddit.org 129 points 1 month ago

Or make him a Bond villain.

[-] Schmerzbold@feddit.org 5 points 2 months ago

I also used to keep water running and stopped doing that a few months ago. Also reduced my showering time to ~10 minutes… could easily spend 20, sometimes 30 minutes under the shower before.

[-] Schmerzbold@feddit.org 4 points 2 months ago* (last edited 2 months ago)

You can set on what line on the screen less (the pager program man uses by default) puts search results with the -jn/--jump-target=n option. For example, using .5 as a value for n makes less focus the line with the search result on the center of the screen. This should help with your overshoot issue.

Either set the option within less with the - command followed by j.5↵ for the current running instance of less, or set and export the LESS environment variable inside your ~/.bashrc to have less always behave that way.

[-] Schmerzbold@feddit.org 3 points 2 months ago

I guess that's true when you're a company trying to sell a product. For an open source project more popularity might just mean more hassle. Sure, it may increase your employment opportunities somewhat, but seeing how entitled and demanding users of os-software can be, I'm sure some devs wish their projects were less popular.

[-] Schmerzbold@feddit.org 5 points 2 months ago

That works nicely. Thanks 👍

35

So, I have a python script I'd like to run from time to time from the CLI (on Linux) that resides inside a venv. What's the recommended/intended way to do this?
Write a wrapper shell script and put it inside a $PATH-accessible directory that activates the virtual environment, runs the python script and deactivates the venv again? This seems a bit convoluted, but I can't think of a better way.

Schmerzbold

joined 2 months ago