首页 > 系统相关 >macOS change default shell from zsh to bash All In One

macOS change default shell from zsh to bash All In One

时间:2022-08-15 02:33:08浏览次数:84  
标签:bin macOS shell default com xgqfrms zsh bash

macOS change default shell from zsh to bash All In One

$  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
# 切换 shell
$ chsh -s /bin/bash           

$ chsh -s /bin/zsh

https://www.howtogeek.com/444596/how-to-change-the-default-shell-to-bash-in-macos-catalina/

zsh bug ❌

https://www.cnblogs.com/xgqfrms/p/16574303.html

test

$ cd /Users/xgqfrms-mbp/Documents/GitHub/leetcode/js-solutions

$ npx ts-node ./054\ spiral-matrix.ts

refs

https://github.com/microsoft/vscode/issues/157801


Flag Counter

©xgqfrms 2012-2020

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载

标签:bin,macOS,shell,default,com,xgqfrms,zsh,bash
From: https://www.cnblogs.com/xgqfrms/p/16586901.html

相关文章

  • 2022的ShellCTF之web_WP
    Extractor:考点是SQL注入,不过数据库不是mysql,而是sqlite首先尝试了:1'or1=1#  尝试1‘or1=1--  发现有东西,使用:orderby判断列表,知道有4列然后尝试获......
  • windows终端使用nushell+oh-my-posh美化
    先看效果图步骤如有错误请指出。从github安装nushell从githubrelease下载Release0.66.2·nushell/nushell(github.com)githubrelease下载速度可能会很慢,可以在......
  • Shell 从入门到精通 (五)流程控制(重点)
    1if判断1)基本语法(1)单分支if[条件判断式];then程序fi 或者  if[条件判断式]then程序fi 注意事项:①[条件判断式],中括号和条件判断式之......
  • 用10行shell脚本监控Linux
    用10行shell脚本监控Linux雷哥 Cloud研习社 2022-07-1513:36 发表于山东收录于合集#shell脚本6个#实战经验31个#linux46个 雷哥喊你回来复习shell脚本......
  • 免杀之:C# XOR Shellcode
    免杀之:C#XORShellcode目录免杀之:C#XORShellcode1环境准备2制作Shellcode后门文件2.1编译环境准备2.2生成XORKryptor程序1环境准备antman1p/ShellCodeRunner:......
  • Shell 从入门到精通 (四)条件判断
    1.基本语法[condition](注意condition前后要有空格)注意:条件非空即为true,[atguigu]返回true,[]返回false。2.常用判断条件(1)两个整数之间比较=字符串比较-lt小......
  • Shell编程
    变量:类型只有数字、字符串、数组,不用分号#!/bin/shstr_name="jack"#变量赋值,等号俩边不能有空格,比如str_name="jack"、str_name="jack"echo$str_nameecho${str_n......
  • 列式存储的分布式数据库——HBase Shell与SQL实战操作(HBase Master高可用实现)
    目录一、前言二、命令行操作(hbaseshell)1)连接HBase2)创建表(create)3)添加数据(put)4)查询数据(scan)5)获取单行数据(get)6)禁用/启用表(disable/enable)7)清空表(truncate)8)删除表(drop)9)开启......