OK all you command line warriors, tell me this. Without using the mouse, how do I get the cursor away from the command line to copy something displayed earlier in the terminal. I know how to scroll the window but I need to be able to move the cursor to copy some text. I’ve searched high and low for a solution but so far been unable to get one. Surely command line terminals existed before mice were invented. #cli#terminal#linux
I was looking for functions that allow providing "beautiful" messages to the user when using #rstats package functions. I have discovered #cli and just figured out that this package is used in all the cool packages (devtools, usethis) I am using to develop my own package ^^. If like me you did not know all the possibilities of the #cli package, it may be well worth the read: https://github.com/r-lib/cli
Whenever I need to create a quick #cli script (and I can't easily do it in #bash or #zsh) without tests and for ease, I'll typically use #python. I've spotted others doing the same in #nodejs, #php, etc. Does everyone go back to the language they're most familiar with in these scenarios?
when dont runs it will definitely NOT run the requested command (well: definitely NOT with the given arguments anyway!)
it MAY or MAY NOT execute something else, however. this behavior is undefined and left as an implementation choice -- so do NOT rely on whatever you observe it to do at runtime, or what the source code suggests
Before I go out and make it myself, I'll ask here if someone knows of an existing solution. I am looking for a cli time tracking solution with the following hard requirements:
conflict-resistant git-syncable plain text storage
tracking multiple simultaneous events
tags, notes
simple checkin/-out commands with some intelligence
data analysis tools built-in, at least data export
I'm using #timewarrior but it's lacking in most above regards.
I use TMUX, which is a great terminal multiplexer, but struggle a bit with reviewing the screen history - the bindings in my case VI-like but I think I will alias this command as it suits me better:
tmux capture-pane -pS - | vim +':$' -
That just dumps the screen history into VIM and takes the cursor right to the end of the file. Then it's actually VIM, so I'm fine :-)
I've been re-reconverting a lot of my "stuff" to the BSDs (Free, Open, Net). It's refreshing. The Linux every-tool-has-to-be-a-swiss-army-knife ethos is exhausting after a while. The relative simplicity and clean organization of *BSD (especially OpenBSD) re-affirms my fondness for UNIX-y things.
You might think there's not that much difference but, in many cases, I'd rather admin a BSD box. Try it, you'll see.
Also, NetBSD is soo lean, it has made my old Pentium III almost useful again. Even with 333Mhz and 128 MB of RAM 🙃
@rory Yeah, I get what you mean, with THICC Distros like @ubuntu having dropped #i686 support half a decade ago...
I do however think that #thinn and #minimalist#Linux isn't just possible (see #TinyCore) but also could be made to work from a single 1440kB 3,5" FDD...
everytime something that could've been barely Megabytes as an #AppImage, #FlatPak, #Snap or Kilobytes as a #CLI tool instead shoves yet another entire half gig copy of the #Bloatware-#Browser that is #Chromium onto the Desktop despite using not even 0,1% of it's featureset
I call this a systemic failure in Software Architecture.
Browsers are the most attacked applications on #Linux beyond CMSes and Webservers...