From 524808dcaa8a435cc2b7092a92532aee03405da0 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 17 Aug 2016 18:15:37 +1200 Subject: Move completion section below function section --- README.markdown | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/README.markdown b/README.markdown index 4800faaf..a59cfe73 100644 --- a/README.markdown +++ b/README.markdown @@ -161,28 +161,6 @@ common terminals using both `termcap(5)` and `terminfo(5)`, including \*BSD systems. It's also designed to degrade gracefully for eight-color and no-color terminals. -#### Completion - -I find the `bash-completion` package a bit too heavy for my tastes, and turn it -off using a stub file installed in `.config/bash_completion`. The majority of -the time I just want to complete paths anyway, and this makes for a quicker -startup without a lot of junk functions in my Bash namespace. - -I do make some exceptions with completions defined in `.bash_completion.d` -files for things I really do get tired of typing repeatedly: - -* Builtins, commands, help topics, shell options, and variables -* `ftp(1)` hostnames from `~/.netrc` -* `git(1)` branch names -* `gpg(1)` long options -* `make(1)` targets read from a `Makefile` -* `man(1)` page titles -* `mysql(1)` databases from `~/.mysql/*.cnf` -* `pass(1)` entries -* `ssh(1)` hostnames from `~/.ssh/config` - -I also add completions for my own scripts and functions where useful. - #### Functions If a function can be written in POSIX `sh` without too much hackery, I put it @@ -238,6 +216,28 @@ There are a few other little tricks defined for other shells, mostly in * `vr()` tries to change to the root directory of a source control repository. +#### Completion + +I find the `bash-completion` package a bit too heavy for my tastes, and turn it +off using a stub file installed in `.config/bash_completion`. The majority of +the time I just want to complete paths anyway, and this makes for a quicker +startup without a lot of junk functions in my Bash namespace. + +I do make some exceptions with completions defined in `.bash_completion.d` +files for things I really do get tired of typing repeatedly: + +* Builtins, commands, help topics, shell options, and variables +* `ftp(1)` hostnames from `~/.netrc` +* `git(1)` branch names +* `gpg(1)` long options +* `make(1)` targets read from a `Makefile` +* `man(1)` page titles +* `mysql(1)` databases from `~/.mysql/*.cnf` +* `pass(1)` entries +* `ssh(1)` hostnames from `~/.ssh/config` + +I also add completions for my own scripts and functions where useful. + #### pdksh The pdksh configuration files and functions are not nearly as featureful as the -- cgit v1.2.3