10

Maybe I can Stay in NuShell -or- Living in a Diverse Land of Shells

 2 years ago
source link: https://fuzzyblog.io/blog/nushell/2022/07/20/maybe-i-can-stay-in-nushell.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Maybe I can Stay in NuShell -or- Living in a Diverse Land of Shells

Jul 20, 2022

I really, really like NuShell. The realization that maybe I had to leave was, I'll admit, mildly crushing. And then I just had the realization that maybe I don't have to leave NuShell and slink back to the dirty, byte infested corners of Bash and Zsh. Here's what just happened:

/Users/sjohnson/Sync/coding/flow_analytics/open_source〉rails new pool_api --api                                                            
Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.
/Users/sjohnson/Sync/coding/flow_analytics/open_source〉ruby -v                                                                                 07/20/2022 05:34:41 AM
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21]
/Users/sjohnson/Sync/coding/flow_analytics/open_source〉rvm use        

And that was the point when I realized "Oh yeah – RVM doesn't work on NuShell" and then it struck me – I can run Bash:

/Users/sjohnson/Sync/coding/flow_analytics/open_source〉/bin/bash                                                                               07/20/2022 05:34:57 AM
bash: /Users/sjohnson/Library/Python/2.7/bin/powerline-config: /usr/bin/python: bad interpreter: No such file or directory
bash: /Users/sjohnson/Library/Python/2.7/bin/powerline-config: /usr/bin/python: bad interpreter: No such file or directory
bash: /Users/sjohnson/.iterm2_shell_integration.nu: No such file or directory
ERROR:  Can't find Ruby library file or shared library lunchy
usage: dirname string [...]

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
[sjohnson:~/Sync/coding/flow_analytics/open_source] [base] $ rails new pool_api --api

create
create  README.md
create  Rakefile
create  .ruby-version
create  config.ru
create  .gitignore
create  .gitattributes
create  Gemfile
   run  git init from "."
...

So maybe my system can mostly run NuShell and I can drop in and out of Bash / Zsh when I need different things. Fingers Crossed.


Posted In: #nushell


Recommend

  • 34
    • www.tuicool.com 5 years ago
    • Cache

    Introducing nushell

    Today, we’re introducing a new shell, written in Rust. It draws inspiration from the classic Unix philosophy of pipelines, the structured data approach of PowerShell, functional programming, systems programming, and more....

  • 61

    README.md

  • 9
    • www.nushell.sh 5 years ago
    • Cache

    Nushell 0.8.0

    Nushell, or Nu for short, is a new shell that takes a modern, structured approach to your commandline. It works seamlessly with the data from your filesystem, operating system, and a growing number of file formats to make...

  • 11
    • www.nushell.sh 5 years ago
    • Cache

    Nushell 0.9.0

    Nushell, or Nu for short, is a new shell that takes a modern, structured approach to your commandline. It works seamlessly with the data from your filesystem, operating system, and a growing number of file formats to make...

  • 6
    • www.nushell.sh 5 years ago
    • Cache

    Nushell 0.10.0

    Nushell, or Nu for short, is a new shell that takes a modern, structured approach to your commandline. It works seamlessly with the data from your filesystem, operating system, and a growing number of file formats to make...

  • 3
    • www.nushell.sh 5 years ago
    • Cache

    Nushell 0.13.0

    Nushell, or Nu for short, is a new shell that takes a modern, structured approach to your commandline. It works seamlessly with the data from your filesystem, operating system, and a growing number of file formats to make...

  • 29
    • 微信 mp.weixin.qq.com 4 years ago
    • Cache

    浅谈Living Off the Land Binaries

    这是  酒仙桥六号部队  的第  92   篇文章。 全文共计2608个字,预计阅读时长9分钟 。...

  • 5

    What is the “Living off the Land”(LotL) Attack Tactic in Cybersecurity?January 8th 2022 new story6...

  • 7

    Stay out of 'Financial La La Land': Suze Orman says most Americans need to do this to survive their next crisisLauren BirdFri, October 28, 2022, 10:00 PM·6 min rea...

  • 4

    Elliot on Security ...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK