#---------------------------------------------By KIH-----
#.bashrc ¿¡ Ãß°¡Çϱâ
xcd() { cd $* ; PS1="[`pwd`]# "; }
alias cd='xcd'
#---------------------------------------------By KIH-----
PWD shell unix ; 2004/03/22 23:26
http://blog.naver.com/shik2080/100001414983
Á¦¸ñ : ÇöÀç ÀÛ¾÷ÁßÀÎ µð·ºÅ丮¸¦ ÇÁ·ÒÇÁÆ®¿¡ Ç¥½ÃÇÏ´Â ¹æ¹ý.
ºÐ·ù : OS
INFODOC ID: 14980 °³¿ä: ÇöÀç ÀÛ¾÷ÁßÀÎ µð·ºÅ丮¸¦ ÇÁ·ÒÇÁÆ®¿¡ Ç¥½ÃÇÏ´Â ¹æ¹ý. ¼¼ºÎ ¼³¸í: KSHÀÇ °æ¿ì »ç¿ëÀÚÀÇ .profile ÆÄÀÏ¿¡ ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇϽʽÿÀ. PS1='${PWD##*/}/ > ' # For partial pathname in the prompt. PS1='${PWD}/ > ' # For full pathname in the prompt. or stty erase ^H PS1="`uname -n`:$PWD # " root alias ls="ls -aF" alias l="ls -alF | less" alias rm="rm -i"
---------------------------------------------------------------------------
CSHÀÇ °æ¿ì .login ÆÄÀÏ¿¡ ´ÙÀ½ Áß ÇÑ °¡Áö¸¦
ÀÔ·ÂÇϽʽÿÀ.
# For hostname and full pathname in the prompt. set prompt="`hostname`:$cwd
% " alias cd 'cd !*;set prompt="`hostname`:$cwd % "'
¶Ç´Â
# For just the full pathname in the prompt. set prompt="$cwd % " alias cd
'cd !*;set prompt="$cwd % "'
¶Ç´Â
# For hostname and partial pathname in the prompt. set prompt="`hostname`:`basename
${cwd}` % " alias cd 'cd !*;set prompt="`hostname`:`basename ${cwd}` %
"'
¶Ç´Â
# For just the partial pathname in the prompt. set prompt="`basename ${cwd}`
% " alias cd 'cd !*;set prompt="`basename ${cwd}` % "' |
BOURNE ½©ÀÇ °æ¿ì: Bourne ½©(/bin/sh)¿¡¼ pwd·Î º¯°æÇÏ´Â °Íó·³ PS1 ÇÁ·ÒÇÁÆ®¿¡¼ º¯°æÇÏ·Á¸é °èÁ¤ÀÇ
.profile¿¡ cd¶ó´Â »õ ÇÔ¼ö¸¦ »ý¼ºÇϽʽÿÀ.
cd() { chdir $* ; PS1="`pwd` $ "; } ÀÌ cd ÇÔ¼ö°¡ ½©¿¡ ³»ÀåµÈ cd ¸í·É ´ë½Å ½ÇÇàµË´Ï´Ù. Á¦Ç° ¿µ¿ª: À¯Æ¿¸®Æ¼ Á¦Ç°: ½© ½ºÅ©¸³Æ® SUNOS ¸±¸®Áî: ¸ðµç ¸±¸®Áî Çϵå¿þ¾î: ¸ðµç Çϵå¿þ¾î ----------------------------------------------------------------------------
* °ü¸®ÀÚ´Ô¿¡ ÀÇÇØ¼ °Ô½Ã¹° À̵¿µÇ¾ú½À´Ï´Ù (2008-02-09 21:56)
|