From what I understood is that the functionality that pastes selected text with middle-click is coded deep in the Linux kernel, so it doesn’t even use a clipboard and it would be hard to get rid of this functionality. As others mentioned, using normal copy-paste commands (ctrl+shift+c) shouldn’t be a problem because it uses a clipboard.
As far as I know that happens because in Linux ctrl+v and middle click pastes are stored in different places and are considered different things, in fact there’s a third way to paste which I don’t remember. But basically the middle click paste is used whenever you select a string, there’s no need to copy it, and the ctrl+v paste works when you do ctrl+c.
There are two copy/paste buffers. The one you get with just the mouse is not the same as the one you get with ctrl-c ctrl-v. And frankly, once you know this, it’s f*ing awesome. If you really want a single buffer, there are apps that do that.
Because it’s not as maintainable as separating them by application or some other separation. Would not want to fill up my bashrc with single-application specific code.
You could break it out into other files if you really got that much going on. But if you really have hundreds or more env vars, maybe you should re-think using env vars at all.
Hard to give a rec without more detail, so I don’t really get it.
That’s a good idea, but it only makes the problem a little better. I still wouldn’t want one large aliases.sh file with environment variables for every application I customized. Would rather have them separate somehow without gobbling up a file
If you were using Zsh, one way you could do this is by autoloading function files from a folder in your fpath.
Let’s say you’re using ~/.local/share/zsh/site-functions for your custom functions. To ensure that folder is an early part of your fpath, put something like this within your .zshrc:
Explanation for the second =:=’ expansion If a word begins with an unquoted =’ and the EQUALS option is set, the remainder of the word is taken as the name of a command. If a command ex‐ ists by that name, the word is replaced by the full pathname of the command.
The last thing you need to do is mark it for autoloading, in your .zshrc:
Instead of listing those functions manually as arguments, you could instead use a glob pattern to collect all those names, excluding any which begin with _ (completion functions):
I moved to Debian and MX Linux because Ubuntu was deviating from the principles that are important to me. Can I ask why you prefer Firefox-ESR? It’s the first thing I remove when I install Debian! And why do you stick with Ubuntu if you don’t like snaps? Do you have any compatibility issues with other deb-based distros?
The reason is pretty much just laziness. This is actually my work laptop. I told management that I needed Linux. They only know about Ubuntu and their “monitoring” tools have only been tested on that platform. Thus I couldn’t use any other random distro.
I’m also a Firefox supporter (I use Chromium as backup since some company resources work better on that). I found out that the Firefox-ESR was still released as a deb and the installation is without a hassle. I just need stability and no the latest bells and whistles.
linux
Active
This magazine is from a federated server and may be incomplete. Browse more on the original instance.