有人可以帮助我,并告诉我我的bash_profile发生了什么。我不确定为什么会有这么多重复的相同代码行。
什么是^ [部分?有一次我试图为崇高文本设置一个快捷方式来打开文件,这可能是从那个?这样做的正确方法是什么?我可以删除重复的代码行而不会破坏某些内容吗?
# Setting PATH for Python 3.2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
"~/.bash_profile" 28L, 763C
# Setting PATH for Python 3.2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
# Setting PATH for Python 3.2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
~
~
~
~
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
~
~
~
# Setting PATH for Python 3.2
# The orginal version is saved in .bash_profile.pysave
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
~
~
~
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
~
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
~
# Setting PATH for Python 3.2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
# Setting PATH for Python 3.2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
# Setting PATH for Python 3.2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
# Setting PATH for Python 3.2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
# Setting PATH for Python 3.2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
~
# Setting PATH for Python 3.2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
~
# Setting PATH for Python 3.2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
# Setting PATH for EPD_free-7.3-2
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}"
export PATH
^[^[^[^[PATH=/Applications/Sublime Text 2.app/Contents/ShareSupport/bin/subl
export PATH=$PATH:~/bin
cd
ls
br
-br
-^[^[^[^[^[^[^[^[^[^[^[^[
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
~
~
~
~
-- INSERT --
答案 0 :(得分:4)
看起来像是一些Vim tomfoolery,在错误的地方输入命令,意外的复制和粘贴,等等。
^[
是在没有处理它的程序中按 Escape 生成的字符。 ^[^[^[^[^[^[^[^[^[^[^[^[
看起来像是在试图退出程序时捣乱 Escape 键。 Vim不应该这样做,但其他文本编辑可能会这样做。
"~/.bash_profile" 28L, 763C
是来自Vim的典型状态行。我猜它是无意中从屏幕上复制粘贴到文件中的。同样适用于
~
~
~
~
-- INSERT --
重复的副本可能是由于一堆重复的糊状物造成的。这可能就像中间点击鼠标一样简单,或者在不处于插入模式时在Vim中反复按p
。
无论如何,只需要清理这一切。如果你发现自己在Vim并且做了一些错误的编辑,那么快速解决方法是按 Escape 几次,然后输入:qa!
Enter 。那个用于退出的q
,用于所有窗口的a
,以及用于NO的!
不能保证只是退出!