From: iceb@svitonline.com To: community@altlinux.ru Subject: Re: [Comm] Выход из mc (что, неужели никто не знает?) Date: Thu, 20 Nov 2003 14:09:27 +0200 (EET) Message-ID: <Pine.LNX.4.53L.0311201401200.24774@iceb.home.int> (raw) In-Reply-To: <200311201327.00125.therion@pochta.ru> В Чтв, 20 Ноя 2003, therion написал(а): t> В сообщении от 20 Ноябрь 2003 11:07 iceb@svitonline.com t> написал(a): t> > В Чтв, 20 Ноя 2003, Sinom написал(а): t> > t> > S> > Как сделать, чтобы после выхода из mc я оказывался в t> > S> каталоге в котором t> > S> > находился в mc, а не в том из которого я когда-то его t> > S> запустил. Например я t> > S> > нахожусь в домашнем каталоге, запускаю mc, t> перемещаюсь, t> > S> например, в каталог t> > S> > ~/images/girls/hard, выхожу из mc, и опять оказываюсь t> в t> > S> домашнем t> > S> > каталоге... А мне нужно, чтобы я оказался в t> > S> ~/images/girls/hard. Как это t> > S> > настраивается? t> > S> t> > Для этого надо запускать не просто /usr/bin/mc, а некий t> скрипт, t> > который выполняет cd в директорию, выданную при запуске mc t> с t> > определенными ключами. По умолчанию в ALT такое поведение t> уже t> > установлено с помощью alias. Вы либо его сломали, либо t> > пользуетесь каким-то другим дистрибутивом. Чтобы проверить t> - t> > выполните команду alias mc. У меня, например, она выдает: t> > t> > alias mc='MCTF=${TMPDIR-/tmp}/mc-$USER.pwd.$$ ; rm -f $MCTF t> ; t> > /usr/bin/mc -P $MCTF ; if [ -f $MCTF ]; then MCDIR="`cat t> $MCTF`" t> > ; rm -f $MCTF ; cd "$MCDIR" ; fi ; unset MCTF MCDIR' t> t> Странно, у меня так t> alias mc='. /usr/share/mc/bin/mc-wrapper.sh' t> и все.... t> ничего настроенного по умолчанию в этом плане не менял t> Все правильно. Мне просто по ряду причин удобнее было де-факто вынести содержимое mc-wrapper.sh прямо в alias. Попробуйте выполнить . /usr/share/mc/bin/mc-wrapper.sh прямо из командной строки. Если переходить и в этом случае не будет - попробуйте вставить отладочные сообщения в этот скрипт и посмотреть, что там на самом деле происходит. Он очень простой. -- Yura Kalinichenko
next prev parent reply other threads:[~2003-11-20 12:09 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-11-10 3:36 [Comm] Выход из mc Sinom 2003-11-19 23:57 ` [Comm] Выход из mc (что, неужели никто не знает?) Sinom 2003-11-20 6:07 ` iceb 2003-11-20 8:27 ` therion 2003-11-20 12:09 ` iceb [this message] 2003-11-20 11:44 ` Sinom
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=Pine.LNX.4.53L.0311201401200.24774@iceb.home.int \ --to=iceb@svitonline.com \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git