每次我打开终端,它都会以此开始。
export PATH="/home/name/.rbenv/shims:${PATH}"
export RBENV_SHELL=bash
source '/home/name/.rbenv/libexec/../completions/rbenv.bash'
command rbenv rehash 2>/dev/null
rbenv() {
local command
command="${1:-}"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
rehash|shell)
eval "$(rbenv "sh-$command" "$@")";;
*)
command rbenv "$command" "$@";;
esac
}
export PATH="/home/name/.rbenv/shims:${PATH}"
export RBENV_SHELL=bash
source '/home/name/.rbenv/libexec/../completions/rbenv.bash'
command rbenv rehash 2>/dev/null
rbenv() {
local command
command="${1:-}"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
rehash|shell)
eval "$(rbenv "sh-$command" "$@")";;
*)
command rbenv "$command" "$@";;
esac
}
name@Laptop:~$
我不知道它是错误消息还是某些文件的回显消息,我想知道它为什么会回显该消息。
答案1
安装程序在编辑您的 时可能出现问题~/.bashrc
。您可能希望自行编辑它或通过 进行“重置” cp /etc/skel/.bashrc ~/.bashrc
。