[arch-general] mc - why not alias mc-wrapper.sh as default
All, midnight commander provides a convenient script that allows exit to the present working directory of mc instead of returning you to the directory in which mc was started. All that is required is a simple alias: alias mc='. /usr/lib/mc/mc-wrapper.sh' This simply invokes mc with the -P option saving the present dir to a tmp file, then changing to it on exit. Any reason not to make this the default? Just a convenience suggestion with a simple fix -- for consideration. -- David C. Rankin, J.D.,P.E.
alias mc='vim' works really well for me! :-P Just make sure you have a solid syntax highlighter installed, custom or otherwise. On Thursday, May 1, 2014, David C. Rankin <drankinatty@suddenlinkmail.com> wrote:
All,
midnight commander provides a convenient script that allows exit to the present working directory of mc instead of returning you to the directory in which mc was started. All that is required is a simple alias:
alias mc='. /usr/lib/mc/mc-wrapper.sh'
This simply invokes mc with the -P option saving the present dir to a tmp file, then changing to it on exit.
Any reason not to make this the default?
Just a convenience suggestion with a simple fix -- for consideration.
-- David C. Rankin, J.D.,P.E.
I retract my smug remark, for some reason I recalled mc as a file editor. I must be thinking of QBASIC (blue terminal interface). On Friday, May 2, 2014, Kyle Bassett <kylebassett@gmail.com> wrote:
alias mc='vim' works really well for me!
:-P
Just make sure you have a solid syntax highlighter installed, custom or otherwise.
On Thursday, May 1, 2014, David C. Rankin <drankinatty@suddenlinkmail.com<javascript:_e(%7B%7D,'cvml','drankinatty@suddenlinkmail.com');>> wrote:
All,
midnight commander provides a convenient script that allows exit to the present working directory of mc instead of returning you to the directory in which mc was started. All that is required is a simple alias:
alias mc='. /usr/lib/mc/mc-wrapper.sh'
This simply invokes mc with the -P option saving the present dir to a tmp file, then changing to it on exit.
Any reason not to make this the default?
Just a convenience suggestion with a simple fix -- for consideration.
-- David C. Rankin, J.D.,P.E.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2014-05-02 01:26, Kyle Bassett wrote:
I retract my smug remark, for some reason I recalled mc as a file editor. I must be thinking of QBASIC (blue terminal interface).
vim works just fine as a file browser :D -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBCAAGBQJTY0yGAAoJEL/3HArzwYbRdaAP/1jBgfMQ/BKj/wwEvSUM7jJ1 EKS9xqpMeupTLVNK+Qa6ow4RhZHELL8dZ4b/5GHgN5dFb6p2aSg6h4qtvnaK/WdS Ed2cw87t8Id20guuoQoh0UJ6FnuXjd1GQ9F6oGWQEaRI62+U3SlVSGyXMUhXRw3P j+qi6a/PHf7Ggxy0qnFTkp/5b9z9ZQQfrHedzkdln1957RkXPu/6G0M8+LLLuz+0 10j/Qq/XD1dO8szKvXIJf/ojpN9fVJtFQC+zLsO2gWyTdn977B6R71QT5KBX3nes jPcl2x3tiQ9wSQhflif3Xqii/rsvJY+YhlcQPnKr5Z0XIsg02E+t9D/su+jQoJUi dRczkKcdac89OCG6FZQXJWCZ/Y0O2Jxy0XOYevaaX54v292So+pzEcTkXKrpm71/ oTFE25mCEc1jdMWpCZcHqFuAFjVuj3tOFZXW9eOjU9WFodDuF/iWo/+1ln58ycT5 lfccaHAMVsTBht8tIT7YZ//+M5qI7Di5w6sx4CUx0wm4oT+LYqHmCVxSB5KRwB8O qr36+xK2rgzf+V2pEi5z4t6Xv/+hibuKKNRfX5fSmFyKFHydCRqub9FVm6+B3J3u 1eLLk8IKe8K8prqK3h6H5+EWMP6eFfflKjZsiJRe1Rco8e7wB35gxo+HRpEkK2kQ q+z/YgrS2y3OCp0tpUx8 =ZeF/ -----END PGP SIGNATURE-----
participants (3)
-
David C. Rankin
-
Kyle Bassett
-
Steve Engledow