View previous topic :: View next topic |
Author |
Message |
LynZ Apprentice


Joined: 05 Jan 2004 Posts: 220 Location: MIPT
|
Posted: Mon Jan 05, 2004 8:19 pm Post subject: Проблема... оч хочется получить в |
|
|
[lynz@laller (CURRENTDIR)]$
а стоит
bash-2.05b$
как подправить .bashrc & .bash_profile?
10х заранее _________________ Athlon64 (Venice) 3200+ @ ABIT KN8 ULTRA
1 Gb DDR 400
ASUS GeForce 6200 64Mb PCI-X
2 x Samsung SpinPoint P80 80 Gb
SB Live! 5.1 Player
Sven IMHOO MT 5.1 |
|
Back to top |
|
 |
ptica_ablomingo n00b

Joined: 10 Jan 2004 Posts: 1 Location: Riga
|
Posted: Sat Jan 10, 2004 7:57 am Post subject: |
|
|
в .bashrc или .bash_profile прописываешь:
export PS1="\l@\h \w$ "
хотя конечно лучше это забабахать в /etc/profile |
|
Back to top |
|
 |
alastor n00b

Joined: 31 Jan 2004 Posts: 9
|
Posted: Sun Feb 01, 2004 12:42 pm Post subject: |
|
|
V konsoli vse cool, PS1 vigliadit normalno...No kak tolko zahodish v X, i podnimaesh rxvt ili xterm, tam pochemu-to PS1 by default = " \s-\v\$"
Kak sdelat tak chtob pod X, v rxvt priglashenie toje bilo normalnoe..
P.S
Window manager u menia IceWm. |
|
Back to top |
|
 |
ba l33t


Joined: 25 May 2003 Posts: 804
|
Posted: Sun Feb 01, 2004 1:07 pm Post subject: |
|
|
ну например добавь в ~/.bashrc строчку
export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]' |
|
Back to top |
|
 |
Slot n00b


Joined: 09 Oct 2003 Posts: 60 Location: Russia
|
Posted: Mon Feb 02, 2004 5:53 pm Post subject: |
|
|
народ, запостите сюда свой .bashrc и .bash_profile |
|
Back to top |
|
 |
aim1159 n00b

Joined: 24 Aug 2002 Posts: 60 Location: Saint-Petersburg, Russia
|
Posted: Thu Feb 05, 2004 4:24 am Post subject: |
|
|
Slot wrote: | народ, запостите сюда свой .bashrc и .bash_profile |
Э.... Был где-то топик про профайлы... вроде даже в этих форумах...
btw - не знает ли кто как менять кэпшн в xterm на текущий директорий?
очень было бы полезно, знаю что можно но не знаю как... помогите.
bash 2.05b + PuTTY  _________________ /aim
Soft: i386 Ubuntu "Dapper Drake (beta2)"; Linux Kernel 2.6.15
Hard: RoverBook Explorer W200L (Turion64/2Gb RAM/100 Gb HDD/ATI Radeon XPRESS 200M) |
|
Back to top |
|
 |
Rainbow goblin Tux's lil' helper


Joined: 29 Feb 2004 Posts: 132
|
Posted: Sun Feb 29, 2004 2:20 am Post subject: Все очень просто! |
|
|
В общем так - допиши в свой .bashrc следующее:
source /etc/profile
И ВСЕ!
У меня этим все решилось |
|
Back to top |
|
 |
Selecter Tux's lil' helper


Joined: 12 Jan 2004 Posts: 128 Location: Estonia
|
Posted: Tue Mar 02, 2004 12:26 am Post subject: Re: Все очень просто! |
|
|
Rainbow goblin wrote: | В общем так - допиши в свой .bashrc следующее:
source /etc/profile
И ВСЕ!
У меня этим все решилось |
Могу подтвердить  |
|
Back to top |
|
 |
Bash[DevNull] Guru


Joined: 10 Oct 2003 Posts: 333
|
Posted: Wed Mar 03, 2004 11:18 am Post subject: |
|
|
aim1159 wrote: | Slot wrote: | народ, запостите сюда свой .bashrc и .bash_profile |
Э.... Был где-то топик про профайлы... вроде даже в этих форумах...
btw - не знает ли кто как менять кэпшн в xterm на текущий директорий?
очень было бы полезно, знаю что можно но не знаю как... помогите.
bash 2.05b + PuTTY ;) |
Code: | # Change the window title of X terminals
case $TERM in
xterm*|rxvt|Eterm|eterm)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
;;
esac |
_________________ Biomechanical Artificial Sabotage Humanoid |
|
Back to top |
|
 |
|