Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • in .bashrc use alias something='else'

    alias recal="history | grep" instead of history | grep something all the time

    you can also use bash-completion to enable tab completion on the command line for directories, filenames, apps and such
  • Do you already use a "kitchen sink" shell (e.g. bash, zsh, etc)? I use zsh and find that much of the stuff I need to type is available through tab completion (e.g. commands, pathname components, switch names, etc). If that doesn't work then chances are good I've already typed it at some point and can find and edit it by interactively searching through my massive history file with ctrl-r (with emacs bindings that is, not sure how to do that with vi bindings).

    I'm pretty sure there are even ways of redefinin

    • In zsh 4.x, '/' is what i use for history search in vi mode. (It could be just 'Ctrl-R' w/ various options would have worked and i had changed my bindings.) In bash 3 here, vi mode again, both 'Ctrl-R' & '/' start reverse-i-search.
      - parv
    • Have you looked at MultiGnomeTerminal? It allows you to program your function keys with all sorts of useful strings.
      • Thank you! From your description that sounds like the solution I am looking for. Everybody else seems to be offering solutions that will help me only in the shell or only in my editor. (And I was to the point of weighing the cost of learning two or more systems for shortcuts versus the cost of learning the source code for xterm so I could hack in the features I wanted. Which is not a good comparison to be making... :) )

        J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
  • In vi (or vim), use abbr in the config file (~/.exrc or ~/.vimrc).
      abbr FOO Federation Of OrangUtans

    Now, every time you type in "FOO ", it gets expanded automatically.