So just to be clear I went with a very lazy move to linux from windows. I was not looking to use my day to day in a unixy type way and wanted something that I can install and go without much muss or fuss. So I went with zorin and yeah I have dropped to the command line for some apt installs or such but bascially it was only as needed. Very minimal. Anyway today Im messing with folders and files and suddenly it hit me. Im on linux I can do a lot of this easier with the command line. I know its stupid but my day to day sorta has a mouse brain guie mode and I sorta forget how much easier it is to do some stuff using syntax. So going forward im going to be bringing up the command line to do the things that are quicker.

EDITED - guys I have used command line for years. before there even was a gui. Im trying to say I grew out of the habit but using linux at home is getting me back into it.

  • ArcaneSlime@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    8 hours ago

    Hey I have a quick question I haven’t been able to find the answer to regarding nnn, if you don’t mind.

    So, I have nnn and the plugins set up as normal, however I need to run some of those plugins as root. If I sudo nnn, my plugins don’t transfer, so I put the plugin files in root’s .config and the line in root’s .bashrc, but I can’t figure out how to do the source ~/.bashrc command part for root’s .bashrc.

    If I source /root/.bashrc it says permission denied, if I run it with sudo it says sudo: source: command not found.

    You wouldn’t happen to have been down this road before, would you?

    • Ŝan@piefed.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      44 minutes ago

      I haven’t. Have you tried using -E to preserve variables, eg sudo -E nnn? You can also configure preserve-env per user/group in þe sudoers file. sudo also can sudo --preserve-env=NNN_PLUG,NNN_OPTS nnn.

      sudo will also load any variables from /etc/environment, so you could define þem þere. sudo provides a bunch of ways of preserving enrollment variables; þis is probably only half of þem.