hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

hugo_completion_bash.md (1967B)

    1 ---
    2 title: "hugo completion bash"
    3 slug: hugo_completion_bash
    4 url: /commands/hugo_completion_bash/
    5 ---
    6 ## hugo completion bash
    7 
    8 Generate the autocompletion script for bash
    9 
   10 ### Synopsis
   11 
   12 Generate the autocompletion script for the bash shell.
   13 
   14 This script depends on the 'bash-completion' package.
   15 If it is not installed already, you can install it via your OS's package manager.
   16 
   17 To load completions in your current shell session:
   18 
   19 	source <(hugo completion bash)
   20 
   21 To load completions for every new session, execute once:
   22 
   23 #### Linux:
   24 
   25 	hugo completion bash > /etc/bash_completion.d/hugo
   26 
   27 #### macOS:
   28 
   29 	hugo completion bash > /usr/local/etc/bash_completion.d/hugo
   30 
   31 You will need to start a new shell for this setup to take effect.
   32 
   33 
   34 ```
   35 hugo completion bash
   36 ```
   37 
   38 ### Options
   39 
   40 ```
   41   -h, --help              help for bash
   42       --no-descriptions   disable completion descriptions
   43 ```
   44 
   45 ### Options inherited from parent commands
   46 
   47 ```
   48       --clock string               set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
   49       --config string              config file (default is path/config.yaml|json|toml)
   50       --configDir string           config dir (default "config")
   51       --debug                      debug output
   52   -e, --environment string         build environment
   53       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
   54       --log                        enable Logging
   55       --logFile string             log File path (if set, logging enabled automatically)
   56       --quiet                      build in quiet mode
   57   -s, --source string              filesystem path to read files relative from
   58       --themesDir string           filesystem path to themes directory
   59   -v, --verbose                    verbose output
   60       --verboseLog                 verbose logging
   61 ```
   62 
   63 ### SEE ALSO
   64 
   65 * [hugo completion](/commands/hugo_completion/)	 - Generate the autocompletion script for the specified shell
   66