|
提示 51行 else 语法错误,可能是安装fcitx,在putty终端粘贴出错。
34 export PATH
35 unset ROOTPATH
36
37 # including color. We leave out color here because not all
38 # terminals support it.
39 if [ -f /etc/bash/bashrc ] ; then
40 # Bash login shells run only /etc/profile
41 # Bash non-login shells run only /etc/bash/bashrc
42 # Since we want to run /etc/bash/bashrc regardless, we source it
43 # from here. It is unfortunate that there is no way to do
44 # this *after* the user's .bash_profile runs (without putting
45 # it in the user's dot-files), but it shouldn't make any
46 # difference.
47 . /etc/bash/bashrc
48 else
49 PS1='\u@\h \w \$ '
50 fi
51 else
52 # Setup a bland default prompt. Since this prompt should be useable
53 # on color and non-color terminals, as well as shells that don't
54 # understand sequences such as \h, don't put anything special in it.
55 PS1="${USER:-$(type whoami >/dev/null && whoami)}@$(type uname >/dev/null && uname -n) \$ "
56 fi
57
58 for sh in /etc/profile.d/*.sh ; do
59 [ -r "$sh" ] && . "$sh"
60 done
61 unset sh
62
63
64
65 # fcitx &
66 export XMODIFIERS="@im=fcitx"
67 export XIM=fcitx
68 export XIM_PROGRAM=fcitx
69 export GTK_IM_MODULE=xim
70 export QT_IM_MODULE=xim
有谁在帮看下 |
|