Dan*_*Dan 5 shell login fish
我希望能够检查fishshell 是否在登录、交互或批处理模式下运行,这个问题只讨论bash.
fish
bash
gle*_*man 12
使用status命令:
status
$ fish -c 'status --is-interactive; and echo yes; or echo no' no $ status --is-interactive; and echo yes; or echo no yes
还有,status --is-login。这应该涵盖你的基地。
status --is-login
归档时间:
10 年,5 月 前
查看次数:
2420 次
最近记录: