[–] 3 points 3 years ago

You can do it in Bash as well. Put this in .inputrc:

"\e[A":history-substring-search-backward
"\e[B":history-substring-search-forward

# or, if you want to search only from the start of the command
"\e[A": history-search-backward
"\e[B": history-search-forward
  • source
  • parent
  • context
  • [–] 3 points 3 years ago

    Inspired by explainshell, I wrote a script (https://github.com/learnbyexample/command_help) to be used from the terminal itself. It is a bit buggy, but works well most of the time. For example:

    $ ch grep -Ao
           grep - print lines that match patterns
    
           -A NUM, --after-context=NUM
                  Print NUM lines of trailing context after matching lines.  Places a
                  line containing a group separator (--) between contiguous groups of
                  matches.  With the -o or --only-matching option, this has no effect
                  and a warning is given.
    
           -o, --only-matching
                  Print  only  the matched (non-empty) parts of a matching line, with
                  each such part on a separate output line.
    
  • source
  • parent
  • context
  • [–] 2 points 3 years ago

    I mostly read on Kindle Unlimited. A lot of the progression fantasy and cozy fantasy books are on KU (my current favorite subgenres), so there's no shortage of books to read. In addition, there's plenty of self-pub fantasy and sci-fi books (there are two competitions: SPFBO and SPSFC which help in finding good ones to read).

  • source
  • view more: ‹ prev next ›