Add support for nushell (#1878)

* Add support for nushell

* Update neofetch

Co-authored-by: Tyler J Russell <xtylerjrx@gmail.com>

Co-authored-by: Tyler J Russell <xtylerjrx@gmail.com>
This commit is contained in:
Nathan ThomasandTyler J Russell authored and GitHub committed 2021-11-10 05:41:10 +02:00
1 parent 3eb7e13e27
commit 0d08c130ff
1 file changed
+6
+6
View File
@@ -1745,6 +1745,12 @@ get_shell() {
shell=${shell/Copyright*}
;;
nu)
shell+=$("$SHELL" -c "version | get version")
shell=${shell/ $shell_name}
;;
*)
shell+=$("$SHELL" --version 2>&1)
shell=${shell/ $shell_name}