我尝试将RVM与我的gnome-terminal集成,以使RVM正常工作 .

所以我打开 terminal 并导航到 edit menu's profile preference 选项然后进入 title and command 选项卡并选中复选框 Run command as login shell

这是rvm link中的建议

当我打开终端时,我在终端上收到一条消息

-bash:/ home / xxx / ruby / bin:/ usr / lib / lightdm / lightdm:/ usr / local / sbin:/ usr / local / bin:/ usr / sbin:/ usr / bin:/ sbin:/ bin:/ usr / games:没有这样的文件或目录

for cat /etc/bash.bashrc 在终端中的命令:

[-z“$ PS1”] &&返回shopt -s checkwinsize if [-z“$ debian_chroot”] && [-r / etc / debian_chroot];然后debian_chroot = $(cat / etc / debian_chroot)fi PS1 ='$ {debian_chroot:($ debian_chroot)} \ u @ \ h:\ w \ $'if [! -e“$ HOME / .sudo_as_admin_successful”] && [! -e“$ HOME / .hushlogin”];如果[-x / usr / bin / sudo],那么* \ admin \ *中的情况为“$(groups)”;然后cat << - EOF要以管理员身份运行命令(用户“root”),请使用“sudo” . 有关详细信息,请参阅“man sudo_root” . EOF fi esac fi if [-x / usr / lib / command-not-found -o -x / usr / share / command-not-found / command-not-found];函数command_not_found_handle {if [-x / usr / lib / command-not-found];然后
/ usr / bin / python / usr / lib / command-not-found - “$ 1”
返回$?
elif [-x / usr / share / command-not-found / command-not-found];然后
/ usr / bin / python / usr / share / command-not-found / command-not-found - “$ 1”
返回$?其他
printf“%s:命令未找到\ n”“$ 1”>&2
返回127 fi} fi

请建议我解决这个问题

谢谢