Re: Fellow n00b note
- From: Anton Monroe <akm meer net>
- To: mc gnome org
- Subject: Re: Fellow n00b note
- Date: Wed, 21 Mar 2007 04:18:47 -0500
On Tue, Mar 20, 2007 at 05:31:51PM +0000, Reynir Stefansson wrote:
Yo! If you're gonna be as stupid as me and run with multiple versions of
'mc' on the same box, keep track of which one is the really installed
one (in my case, a minimally-patched 4.6.1).
I patched src/textconf.c so 'mc --version' reports itself as something like
"GNU Midnight Commander 2007-03-09-18, irresponsibly hacked by Anton Monroe".
If you need a constant reminder, put something like this in ~/.mc/bashrc
# show MC version in prompt:
export MCversion=$(/proc/${PPID}/exe --version | grep GNU | sed -e "s/GNU Midnight Commander //g")
export PS1="[MC-$MCversion]\w> "
But it makes for a rather long prompt string. I suppose you could put
some short identifying string in the output of 'mc --version' and grep
for that.
Anton
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]