Install

Fedora

sudo dnf install nu

Additional Tools

My specific Dotfiles, use various tools, so it’s best to make sure they’re available and sfiet up.

Install

Info

I am personally often using Zellij, despite Nushell recently implementing proper support for background jobs, as outlined in the corresponding section of the Nushell 0.103.0 patch notes.

This support adds the job spawnjob listjob kill and job unfreeze (for unfreezing Ctrl + Z jobs) commands to Nushell.

My dotfiles don’t integrate pueue (utilizing task.nu) anymore.

Login Shell

If you remember correctly, we set the login shell to bash when creating the custom user, so you might wonder why we didn’t directly set it to nu.

Well, Nushell isn’t POSIX-compliant, and neither does it want to be. Therefore, running nu as a login shell might not be the absolute best experience you’ll ever have.

Instead, I include a code snippet at the bottom of my ~/.bashrc, below the interactive check [[ $- == *i* ]], which will let nu take over any interactive shell, while scripts, etc. that expect a POSIX compliant shell can have their way.

~/.bashrc
[[ $- == *i* ]] || return
 
if [[ $- == *i* && $(ps --no-header --pid $PPID --format comm) != "nu" && -z ${BASH_EXECUTION_STRING} ]]
then
  exec nu
fi