Monthly Archives: September 2011
Midnight Commandar mc notes
| 27-Sep-2011 | Posted by Sonia Hamilton under midnight commander |
Midnight Commander (mc) is mostly obvious, but there’s a few things a regularly forget and have to look up.
- to select (or “tag”) multiple items, use the Insert key, or ctrl-t (eg when on a Macbook)
- any sort of compressed or package file (.deb, .tgz, .iso, .rpm, etc):
- F3 (view) to get an overview of the package
- Enter to browse the package contents, then eg F3 to view the file or F5 to copy the file out
- to jump back and forth to the command line (“subshell support”), use ctrl-o to hide mc, then ctrl-o to return from the subshell to mc
Taken from Jane Tembath’s MC Tutorial. See also the mc faq.
git patch add
| 13-Sep-2011 | Posted by Sonia Hamilton under Git |
My new favourite git option:
git add -p
It’s like doing an interactive add, then choosing ‘p’ for patching. From the manual:
-p, –patch
Interactively choose hunks of patch between the index and the work tree and add them to the index. This gives the user a chance to review the difference before adding modified contents to the index. This effectively runs add –interactive, but bypasses the initial command menu and directly jumps to the patch subcommand. See “Interactive mode” for details.
Recent Comments