Mac 为 shell 添加函数

2019-10-29  本文已影响0人  _凌浩雨

1. 查看 shell

cat /etc/shells

2. 修改默认 shell

chsh -s /bin/sh

3. 添加 shell 命令

#!/bin/bash
echo "hello world 2019.10.29"
chmod +x hello
./hello
上一篇 下一篇

猜你喜欢

热点阅读