如果你是 windows 用户,那么,建议你直接在 Docker 运行体验就好了,几句命令就搞定了,命令如下:
docker run -it quay.io/nushell/nu:latest
将用户 Shell 设置为 Nushell
创建一个名为 techviewleo 的新用户:
$ sudo adduser techviewleoAdding user `techviewleo' ...Adding new group `techviewleo' (1000) ...Adding new user `techviewleo' (1000) with group `techviewleo' ...Creating home directory `/home/techviewleo' ...Copying files from `/etc/skel' ...New password:Retype new password:passwd: password updated successfullyChanging the user information for techviewleoEnter the new value, or press ENTER for the defaultFull Name []: Room Number []:Work Phone []: Home Phone []: Other []:Is the information correct? [Y/n] y
将用户默认 shell 设置为 Nu:
sudo chsh -s /usr/local/bin/nu techviewleo
切换到创建的用户帐户:
$ su - techviewleo Password: Welcome to Nushell 0.28.0 (type'help'for more info) /home/techviewleo>
测试 ls 命令在 Nushell 中的工作方式:
$ su - techviewleo Password: Welcome to Nushell 0.28.0 (type'help'for more info) /home/techviewleo>