You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

打开终端时出现'unknown option: --bash'错误的求助

打开终端时出现'unknown option: --bash'错误的求助

大家好,我最近碰到个头疼的问题——每次打开终端,第一行都会弹出这条错误提示:
unknown option: --bash

这是我的终端截图:
终端显示错误

下面是我的~/.bashrc文件内容:

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values ...

备注:内容来源于stack exchange,提问作者abcdefgh

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 09:09:34