24
submitted 1 year ago by BaumGeist@lemmy.ml to c/linux@lemmy.ml

I've been using nala on my debian-based computers instead of apt, mostly for the parallel downloads, but also because the UI is nicer. I have one issue, and that's the slow completions; it's not wasting painful amounts of time, but it still takes a second or two each time I hit tab. I don't know if this is the same for all shells, but I'm using zsh.

I tried a workaround, but it seems prone to breaking something. So far it's working fine for my purposes, so I thought I'd share anyway:

  1. I backed up /usr/share/zsh/vendor-completions/_nala to my home directory
  2. I copied /usr/share/zsh/functions/Completion/Debian/_apt to /usr/share/zsh/vendor-completions/_nala
  3. I used vim to %s/apt/nala/g (replace every instance of 'apt' to 'nala') in the new /usr/share/zsh/vendor-completions/_nala

Already that's sped up the completions to seemingly as fast as any other command. And already I can see some jank peaking through: zsh now thinks nala has access to apt commands that it definitely doesn't (e.g. nala build-dep, nala changelog and nala full-upgrade), and it has lost autocompletions for nala fetch and nala history.

Once I understand completions files syntax better, I'll fix it to only use the commands listed in nala's manpage and submit a pr to the git repo. In the meantime, if anyone has suggestions for how to correct the existing completions file or more ways to make the _apt completions fit nala, it'd be much appreciated.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 18 Nov 2023
24 points (96.2% liked)

Linux

48335 readers
1328 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS