Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Midnight Commander Konfiguration
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
gsf
n00b
n00b


Joined: 07 Jul 2002
Posts: 46

PostPosted: Wed Jul 10, 2002 7:12 pm    Post subject: Midnight Commander Konfiguration Reply with quote

Hi..

kann mir vielleicht jemand mal erzählen ,wie ich
dem MC beibringe beim Beenden das Verzeichnis/Pfad zu speichern ,damit
ich nicht immer im Home Verzeichis beginnen muß ?

Thx
_________________
...to be or wannabe.......
Back to top
View user's profile Send private message
Codec & Electron
n00b
n00b


Joined: 10 Jul 2002
Posts: 43
Location: Düsseldorf, Germany

PostPosted: Thu Jul 11, 2002 11:43 am    Post subject: Re: Midnight Commander Konfiguration Reply with quote

Der MC speichert beim Beenden standardmäßig das Verzeichnis, das nicht den Fokus hat (in der Konfigurationsdatei $HOME/.mc/ini als Eintrag other_dir). Das andere Verzeichnis ist immer dasjenige, in dem man sich beim Aufruf von mc befindet.

MfG,
C&E
Back to top
View user's profile Send private message
gsf
n00b
n00b


Joined: 07 Jul 2002
Posts: 46

PostPosted: Fri Jul 12, 2002 2:56 am    Post subject: Reply with quote

JA ist klar ;).
Meine Frage war auch nicht richtig gestellt.

Ich meine die Console sollte dem Pfad von MC folgen.

Also wenn ich z.B. mc aus dem Homeverzeichnis aufrufe ,
bis zu usr/local/src.... wandere und ihn dann schließe , dann bin ich
in der Console immer noch im Homeverzeichnis.
Irgendwie kann man das machen , dass die Console die
Vezeichniswechsel mitmacht.

Greetz
_________________
...to be or wannabe.......
Back to top
View user's profile Send private message
Codec & Electron
n00b
n00b


Joined: 10 Jul 2002
Posts: 43
Location: Düsseldorf, Germany

PostPosted: Fri Jul 12, 2002 12:54 pm    Post subject: Reply with quote

gsf wrote:
Ich meine die Console sollte dem Pfad von MC folgen.


Code:
mc ()
{
        mkdir -p $HOME/.mc/tmp 2> /dev/null
        chmod 700 $HOME/.mc/tmp
        MC=$HOME/.mc/tmp/mc-$$
        /usr/bin/mc -P "$@" > "$MC"
        cd "`cat $MC`"
        rm -f "$MC"
        unset MC;
}

export -f mc


In $HOME/.bash_profile o.ä. eingeben. Vgl. auch die Manpage zu mc.

MfG,
C&E
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum