Questions tagged [nushell]
For questions regarding Nushell (a.k.a. "nu"), a shell available for Linux and Unix operating systems.
6 questions
0 votes
1 answer
64 views
I can not match both two-letter and five-letter language codes from the `LANG` environment variable in an `if` statement in Nushell
Explanation It was easy to implement a translation system in Bash and Zsh. Now, it is particularly challenging to implement a translation system in Nushell because Nushell is different from Bash and ...
2 votes
1 answer
581 views
nushell - how to list aliases?
The official docs of nushell claim that one is able to list available aliases via: $nu.scope.aliases However this does not work on my Arch Linux machine: /home/rne〉pacman -Q nushell ...
2 votes
0 answers
528 views
How to source nushell scripts to another
I have two nu files in the same directory. printer.nu #!/bin/nu module printer { export def print [] { echo '>>>>>>>>>>>>>>>>>>>>...
2 votes
1 answer
803 views
How to destruct lists in nushell
I have hello command exported from the module greet. I have also defined the main command which use the hello command. The rest parameters should be passed to hello from main. I'm expecting hello ...
0 votes
2 answers
229 views
Is file and if directory checks in nushell
What is the nushell equivalent to following bash. if [[ -d $LOCATION ]]; then elif [[ -f $LOCATION ]]; then fi
4 votes
3 answers
3k views
Nushell: Convert list of records to table
Disambiguation note: I originally titled this "Nushell: Convert list to table" (and some search engines have this as the first result for those words), however this Stack Overflow question ...