遠端使用者登入只出現 > - BBS

Table of Contents

: : # An interactive shell -- set some stuff up
: : set prompt = "%B%n@%m[%/]#"
: : ^^^^^^^^^^^^^^^
: : 這是我先前更改的地方,感覺上這是給root登入使用~
: : set filec
: : 還是說,還有其它地方也要修改........
: 不是改錯的問題
: 是檔案改錯了
: 你ROOT顯示正確
: 因為你應該有改到/root/.cshrc
: 如果你USER也要顯示
: 那/home/$USER/.cshrc也要改
: 不然就是改/etc/csh.cshrc也可以


關於這一點

我原先是依

http://mail.lsps.tp.edu.tw/~gsyan/freebsd2001/newsetup.html

來進行改的動作

所以也有在/etc/csh.csgrc更改過

也是不行

不過,我昨天有從

http://totorosunny.pixnet.net/blog/post/4676019

裡的教學用遠端"貼"的方式

結果可以達到我要的效果

剛剛我去看設定,才發現是我自已多打了空格,如下。

# $FreeBSD: src/etc/csh.cshrc,v 1.3.56.1.2.1 2009/10/25 01:10:29 kensmith Exp $
#
# System-wide .cshrc file for csh(1).

# setenv LC_CTYPE en_US.ISO_8859-1
# set prompt ="%B%n@%m[%/] $ "
^
這裡多加了個空格

# set autolist


alias ls ls -FGa
setenv LSCOLORS exfxcxdxbxegedabagacad
if ( $tty =~ ttyv* ) then
setenv TERM cons25
else
setenv TERM xterm-color
endif

if ( $USER == root ) then
set prompt="%B[%n@%m %/]# "
else
set prompt="%B[%n@%m %/]> "
endif

set autolist
~

--
※ 編輯: mitsui0309 來自: 1.169.156.241 (04/15 23:16)

All Comments