HOME - Recent Changes - Search:

Academic Work


Personal

* pot de départ


dblp


(:twitter:)

-----

[ edit | logout ]
[ help | sandbox | passwd ]

same panels + stay where you quit

#############################

Question #1

How to get the same panels easily in Midnight Commander?

Example
Say you are in /etc/security on the right panel. You want to see the same directory on the left panel but you don't want to type cd /etc/security. Hell, how to do that?

Answer
In your .bashrc:

alias cpc='PWD_LAC=`pwd`'
alias cdc='cd $PWD_LAC'

Usage:
From the example above: type cpc (+ Enter) on the right side. Go to the left panel, and type cdc (+ Enter).

How to remember that:
cpc -- copy path to clipboard
cdc -- cd to the dir. on the clipboard


Question #2

In the shell I want to find myself in the directory where I quit from mc. How to do that?

Example
In shell, you are in the root (/) directory. You start mc and you go to /home. You quit, and in the shell you fall back to the root, though you'd love to stay in /home.

Answer
In your .bashrc:

alias mc='. /usr/share/mc/bin/mc-wrapper.sh'
Cloud City


anime | bash | blogs | bsd | c/c++ | c64 | calc | comics | convert | cube | del.icio.us | digg | east | eBooks | egeszseg | elite | firefox | flash | fun | games | gimp | google | groovy | hardware | hit&run | howto | java | javascript | knife | lang | latex | liferay | linux | lovecraft | magyar | maths | movies | music | p2p | perl | pdf | photoshop | php | pmwiki | prog | python | radio | recept | rts | scala | scene | sci-fi | scripting | security | shell | space | súlyos | telephone | torrente | translate | ubuntu | vim | wallpapers | webutils | wikis | windows


Blogs and Dev.

* Ubuntu Incident
* Python Adventures
* me @ GitHub


Places

Debrecen | France | Hungary | Montreal | Nancy


Notes

full circle | km


Hobby Projects

* Jabba's Codes
* PmWiki
* Firefox
* PHP
* JavaScript
* Scriptorium
* Tutorials
* me @ GitHub


Quick Links


[ edit ]

View - Edit - History - Attach - Print *** Report - Recent Changes - Search
Page last modified on 2007 December 13, 17:58