• macOS Catalina Terminal,提示 The default interactive shell is now zsh,解决方案


    macOS升级Catalina后

    1:在使用命令台时出现了:

    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.

    2:原我使用的是bash风格,提示语告知现在新系统的shell已经更换为zsh,请用此 `chsh -s /bin/zsh` 命令切换。

    3:查看系统支持的shell风格命令:

    cat /etc/shells

    4:我系统支持的shell:

    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.
    localhost:~ yuzhilin$ cat /etc/shells
    # List of acceptable shells for chpass(1).
    # Ftpd will not allow users to connect who are not using
    # one of these shells.
     
    /bin/bash
    /bin/csh
    /bin/dash
    /bin/ksh
    /bin/sh
    /bin/tcsh
    /bin/zsh
    localhost:~ yuzhilin$

    5:解决办法

      (1) 不使用bash,切换zsh,`chsh -s /bin/zsh`命令切换即可。

      (2) 继续使用bash,但又不想出现提示语,则在

    vim ~/.bash_profile

      .bash_profile文件最下方加上

    # macOS Catalina
    export BASH_SILENCE_DEPRECATION_WARNING=1

      :wq 保存退出重新打开命令行警示语消失。

  • 相关阅读:
    php开发环境
    Kofax Transformation Modules
    htmlagilitypack
    OpenOffice 和 LibreOffice
    php manual
    using the web deploy
    *.deploy.cmd
    Volumn Shadow Copy
    Web Deployment Tool 服务器端
    趣味编程丨如何用C语言区分旅客的国籍?教你一招,包你学会!
  • 原文地址:https://www.cnblogs.com/paris-dream/p/11969305.html
Copyright © 2020-2023  润新知