|
|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Serge Matveev 2:5020/52 06 Feb 2005 23:21:08 To : Serge Chervjakov Subject : Re: mc --------------------------------------------------------------------------------
SC> Вот тоже интересно.. А как это _правильно_ делается? Потому что пока -
SC> прописано в .bashrc. Hо это скорее куда-нибудь в чайники вопрос нада
SC> задавать...
Вот туда и прописывать:
man mc:
-P file, --printwd=file
Print the last working directory to the specified file. This
option is not meant to be used directly. Instead, it's used
from a special shell script that automatically changes the cur-
rent directory of the shell to the last directory the Midnight
Commander was in. Source the file /usr/share/mc/bin/mc.sh (bash
and zsh users) or /usr/share/mc/bin/mc.csh (tcsh users) respec-
tively to define mc as an alias to the appropriate shell script.
Пишешь в ~/.bashrc
source /usr/share/mc/bin/mc.sh
и вперёд.
serge@matveev spb ru Serge Matveev & ...
ICQ 3575357
--- tin/1.7.6-20040906 ("Baleshare") (UNIX) (Linux/2.6.8-2-686 (i686))
* Origin: После нас пришло новое поколение и выбрало Pepsi. (2:5020/52.0)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/430859ae1b419.html, оценка из 5, голосов 10
|