分页: 1 / 1
請幫我看看這個終端的問題------已解決
发表于 : 2014-04-01 17:02
由 ubuntu701
我用的是zsh,不知道為什麼,第一次打開後終端上面都會有一個討厭的百分號。
Re: 請幫我看看這個終端的問題
发表于 : 2014-04-01 17:11
由 pisit
这个好像很少人用其他的shell吧一般都是bash shell.
Re: 請幫我看看這個終端的問題
发表于 : 2014-04-01 17:14
由 ubuntu701
我是聽說很強大,就安裝來玩玩。
Re: 請幫我看看這個終端的問題
发表于 : 2014-04-01 17:19
由 ubuntu701
我在xterm上也試過了,沒改配置就正常,改了後還是有這個符號。
Re: 請幫我看看這個終端的問題
发表于 : 2014-04-01 17:32
由 poloshiao
Re: 請幫我看看這個終端的問題
发表于 : 2014-04-01 20:32
由 YeLee
那個百分號是zsh強加的換行,請閣下把PS1或者PROMPT貼出來,謝謝。最好能順便把~/.zshrc都貼出來。

Re: 請幫我看看這個終端的問題------已解決
发表于 : 2014-04-01 21:56
由 ubuntu701
我不懂設置,只是換了命令提示符和alias.
那個百分號現在沒有拉,估計是我胡亂複製了別人的設置導致大,至於是什麼,我就真不知道了。下面這幾行代碼是我從archlinux wiki上找來的,這個就沒問題了。alias部分我就不貼了吧。
# Created by newuser for 5.0.5
autoload -U compinit promptinit
compinit
promptinit
# This will set the default prompt to the walters theme
prompt walters
autoload -U colors && colors[/code]
# Created by newuser for 5.0.5
autoload -U compinit promptinit
compinit
promptinit
# This will set the default prompt to the walters theme
prompt walters
autoload -U colors && colors
PROMPT=" %{%B$fg[blue]%}%T %W %Y %{%B$fg[white]%}%i
%{%B$fg[yellow]%} > %{$reset_color%}"
RPROMPT="%{%B$fg[yellow]%}%~ %{$reset_color%}"
Re: 請幫我看看這個終端的問題------已解決
发表于 : 2014-04-01 21:58
由 ubuntu701
謝謝poloshiao