fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
8816960b8
master
1complete -c help -n __fish_is_first_arg -x -a'( 2{ 3status get-file help_sections | 4string replace -r "^index(#|\$)" introduction\$1 5printf cmds/%s\n ! . : \[ \{ 6} | 7while read -l item 8printf "%s\t%s\n" $item "$(__fish_help_describe $item)" 9end 10)' 11 12function __fish_help_describe -a help_item 13switch $help_item 14case 'cmds/*' 15echo ( _ "Help for this command" ) 16case commands 17return 18case commands#helper-commands 19return 20case commands#helper-functions 21return 22case commands#keywords 23return 24case commands#known-functions 25return 26case commands#the-full-list 27return 28case commands#tools 29return 30case completions 31echo ( _ "How to write completions" ) 32case completions#useful-functions-for-writing-completions 33echo ( _ 'Useful functions for writing completions' ) 34case completions#where-to-put-completions 35echo ( _ 'Where to put completions' ) 36case contributing 37return 38case contributing#adding-translations-for-a-new-language 39return 40case contributing#code-style 41return 42case contributing#commit-history 43return 44case contributing#configuring-your-editor-for-fish-scripts 45return 46case contributing#contributing-completions 47return 48case contributing#contributing-documentation 49return 50case contributing#contributing-translations 51return 52case contributing#editing-ftl-files 53return 54case contributing#editing-po-files 55return 56case contributing#fish-script-style-guide 57return 58case contributing#github 59return 60case contributing#guidelines 61return 62case contributing#local-testing 63return 64case contributing#mailing-list 65return 66case contributing#minimum-supported-rust-version-msrv-policy 67return 68case contributing#modifications-to-strings-in-source-files-gettext-only 69return 70case contributing#modifying-existing-translations 71return 72case contributing#setting-code-up-for-translations 73return 74case contributing#testing 75return 76case contributing#updating-dependencies 77return 78case contributing#versioning 79return 80case design 81return 82case design#configurability-is-the-root-of-all-evil 83return 84case design#the-law-of-discoverability 85return 86case design#the-law-of-orthogonality 87return 88case design#the-law-of-responsiveness 89return 90case design#the-law-of-user-focus 91return 92case faq 93echo ( _ "Frequently Asked Questions" ) 94case faq#fish-does-not-work-in-a-specific-terminal 95return 96case faq#how-do-i-change-the-greeting-message 97return 98case faq#how-do-i-check-whether-a-variable-is-defined 99return 100case faq#how-do-i-check-whether-a-variable-is-not-empty 101return 102case faq#how-do-i-customize-my-syntax-highlighting-colors 103return 104case faq#how-do-i-get-the-exit-status-of-a-command 105return 106case faq#how-do-i-run-a-command-every-login-what-s-fish-s-equivalent-to-bashrc-or-profile 107return 108case faq#how-do-i-run-a-command-from-history 109return 110case faq#how-do-i-run-a-subcommand-the-backtick-doesn-t-work 111return 112case faq#how-do-i-set-my-prompt 113return 114case faq#how-do-i-set-or-clear-an-environment-variable 115return 116case faq#i-m-getting-weird-graphical-glitches-a-staircase-effect-ghost-characters-cursor-in-the-wrong-position 117return 118case faq#my-command-pkg-config-gives-its-output-as-a-single-long-string 119return 120case faq#my-command-prints-no-matches-for-wildcard-but-works-in-bash 121return 122case faq#uninstalling-fish 123return 124case faq#what-is-the-equivalent-to-this-thing-from-bash-or-other-shells 125return 126case faq#why-does-my-prompt-show-a-i 127return 128case faq#why-doesn-t-history-substitution-etc-work 129return 130case faq#why-doesn-t-set-ux-exported-universal-variables-seem-to-work 131return 132case faq#why-won-t-ssh-scp-rsync-connect-properly-when-fish-is-my-login-shell 133return 134case fish_for_bash_users 135echo ( _ "Differences from bash" ) 136case fish_for_bash_users#arithmetic-expansion 137return 138case fish_for_bash_users#blocks-and-loops 139return 140case fish_for_bash_users#builtins-and-other-commands 141return 142case fish_for_bash_users#command-substitutions 143return 144case fish_for_bash_users#heredocs 145return 146case fish_for_bash_users#other-facilities 147return 148case fish_for_bash_users#process-substitution 149return 150case fish_for_bash_users#prompts 151echo ( _ 'How to make your own prompt' ) 152case fish_for_bash_users#quoting 153echo ( _ 'How "" and \'\' work' ) 154case fish_for_bash_users#special-variables 155return 156case fish_for_bash_users#string-manipulation 157return 158case fish_for_bash_users#subshells 159return 160case fish_for_bash_users#test-test 161return 162case fish_for_bash_users#variable-defaults-my-variable-default-value 163return 164case fish_for_bash_users#variables 165return 166case fish_for_bash_users#wildcards-globs 167return 168case introduction 169echo ( _ Introduction) 170case introduction#configuration 171echo ( _ 'Initialization files' ) 172case introduction#default-shell 173return 174case introduction#examples 175return 176case introduction#installation 177return 178case introduction#other-help-pages 179return 180case introduction#resources 181echo ( _ 'Further help and development' ) 182case introduction#setup 183return 184case introduction#shebang-line 185return 186case introduction#starting-and-exiting 187return 188case introduction#uninstalling 189return 190case introduction#where-to-go 191return 192case interactive 193return 194case interactive#abbreviations 195return 196case interactive#autosuggestions 197echo ( _ Autosuggestions) 198case interactive#command-line-editor 199echo ( _ 'Command line editor' ) 200case interactive#command-mode 201echo ( _ 'Command mode' ) 202case interactive#configurable-greeting 203echo ( _ 'Configurable greeting' ) 204case interactive#copy-and-paste-kill-ring 205echo ( _ 'Copy and paste (Kill Ring)' ) 206case interactive#custom-bindings 207return 208case interactive#directory-stack 209return 210case interactive#emacs-mode-commands 211echo ( _ 'Emacs mode commands' ) 212case interactive#help 213return 214case interactive#insert-mode 215echo ( _ 'Insert mode' ) 216case interactive#key-sequences 217return 218case interactive#multiline-editing 219echo ( _ 'Multiline editing' ) 220case interactive#navigating-directories 221return 222case interactive#pager-color-variables 223echo ( _ "How to color the pager" ) 224case interactive#private-mode 225return 226case interactive#programmable-prompt 227return 228case interactive#programmable-title 229echo ( _ 'Programmable title' ) 230case interactive#searchable-command-history 231echo ( _ 'Searchable history' ) 232case interactive#shared-bindings 233echo ( _ 'Shared bindings' ) 234case interactive#syntax-highlighting 235echo ( _ 'Setting syntax highlighting colors' ) 236case interactive#syntax-highlighting-variables 237echo ( _ 'Variables for changing highlighting colors' ) 238case interactive#tab-completion 239echo ( _ 'How tab-completion works' ) 240case interactive#vi-mode-commands 241return 242case interactive#visual-mode 243echo ( _ 'Visual mode' ) 244case language 245return 246case language#argument-handling 247echo ( _ "How to handle arguments" ) 248case language#autoloading-functions 249echo ( _ "How functions are loaded" ) 250case language#brace-expansion 251echo ( _ 'Brace expansion {a,b,c}' ) 252case language#builtin-commands 253echo ( _ "An overview of fish's builtins" ) 254case language#combiners-and-or 255return 256case language#combining-different-expansions 257echo ( _ "How different expansions work together" ) 258case language#combining-lists 259echo ( _ 'Cartesian Products' ) 260case language#combining-pipes-and-redirections 261return 262case language#command-lookup 263return 264case language#command-substitution 265echo ( _ "Command substitution" ) 266case language#comments 267echo ( _ "# comments" ) 268case language#conditions 269echo ( _ 'Conditional execution of code and flow control' ) 270case language#configuration-files 271return 272case language#debugging-fish-scripts 273echo ( _ 'Debugging fish scripts' ) 274case language#defining-aliases 275echo ( _ "How to define an alias" ) 276case language#dereferencing-variables 277return 278case language#escaping-characters 279echo ( _ "How \\\\ escaping works" ) 280case language#event-handlers 281echo ( _ 'Event handlers' ) 282case language#exporting-variables 283echo ( _ 'Exporting variables' ) 284case language#functions 285echo ( _ "How to define functions" ) 286case language#future-feature-flags 287return 288case language#home-directory-expansion 289echo ( _ 'Home directory expansion ~USER' ) 290case language#input-output-redirection 291echo ( _ 'Input/Output (IO) redirection' ) 292case language#job-control 293echo ( _ 'Running multiple programs' ) 294case language#lists 295echo ( _ "Variables with multiple elements" ) 296case language#locale-variables 297echo ( _ 'Locale variables' ) 298case language#loops-and-blocks 299echo ( _ "while, for and begin" ) 300case language#overriding-variables-for-a-single-command 301echo ( _ "foo=bar variable overrides" ) 302case language#parameter-expansion 303echo ( _ 'Parameter expansion (Globbing)' ) 304case language#path-variables 305echo ( _ 'Why $PATH is special' ) 306case language#piping 307echo ( _ Piping) 308case language#profiling-fish-scripts 309return 310case language#querying-for-user-input 311return 312case language#quotes 313echo ( _ Quotes) 314case language#quoting-variables 315echo ( _ 'How "" and \'\' work' ) 316case language#shell-variable-and-function-names 317echo ( _ 'What characters are allowed in names' ) 318case language#shell-variables 319echo ( _ 'Shell variables' ) 320case language#slices 321echo ( _ 'Index range expansion' ) 322case language#special-variables 323echo ( _ 'Special variables' ) 324case language#syntax-overview 325echo ( _ 'Introduction to the fish syntax' ) 326case language#table-of-operators 327return 328case language#terminology 329echo ( _ Terminology) 330case language#the-if-statement 331return 332case language#the-status-variable 333echo ( _ '$status, the return code' ) 334case language#the-switch-statement 335return 336case language#universal-variables 337echo ( _ 'More on universal variables' ) 338case language#variable-expansion 339echo ( _ 'Variable expansion $VARNAME' ) 340case language#variable-scope 341echo ( _ 'Variable scope' ) 342case language#variables-as-command 343return 344case language#wildcards-globbing 345echo ( _ 'Wildcard expansion *.*' ) 346case license 347return 348case license#gnu-library-general-public-license 349return 350case license#license-for-fish 351return 352case license#license-for-the-python-docs-theme 353return 354case license#mit-license 355return 356case prompt 357echo ( _ 'How to write your own prompt' ) 358case prompt#adding-color 359return 360case prompt#formatting 361return 362case prompt#our-first-prompt 363return 364case prompt#save-the-prompt 365return 366case prompt#shortening-the-working-directory 367return 368case prompt#status 369return 370case prompt#transient-prompt 371return 372case prompt#where-to-go-from-here 373return 374case relnotes 375echo ( _ "Fish's release notes" ) 376case terminal-compatibility 377echo ( _ "Terminal features used by fish" ) 378case terminal-compatibility#dcs-commands-and-gnu-screen 379return 380case terminal-compatibility#optional-commands 381return 382case terminal-compatibility#required-commands 383return 384case terminal-compatibility#unicode-codepoints 385return 386case tutorial 387echo ( _ Tutorial) 388case tutorial#autoloading-functions 389echo ( _ 'Autoloading Functions' ) 390case tutorial#autosuggestions 391echo ( _ Autosuggestions) 392case tutorial#combiners-and-or-not 393echo ( _ 'Combiners (And, Or, Not)' ) 394case tutorial#command-substitutions 395echo ( _ 'Command Substitutions' ) 396case tutorial#conditionals-if-else-switch 397echo ( _ 'Conditionals (If, Else, Switch)' ) 398case tutorial#exit-status 399echo ( _ 'Exit Status' ) 400case tutorial#exports-shell-variables 401echo ( _ 'Exports (Shell Variables)' ) 402case tutorial#functions 403echo ( _ Functions) 404case tutorial#getting-help 405echo ( _ 'Getting Help' ) 406case tutorial#getting-started 407return 408case tutorial#learning-fish 409echo ( _ 'Learning fish' ) 410case tutorial#lists 411echo ( _ Lists) 412case tutorial#loops 413echo ( _ Loops) 414case tutorial#path 415echo ( _ '$PATH' ) 416case tutorial#pipes-and-redirections 417echo ( _ 'Pipes and Redirections' ) 418case tutorial#prompt 419echo ( _ Prompt) 420case tutorial#ready-for-more 421echo ( _ 'Ready for more?' ) 422case tutorial#running-commands 423echo ( _ 'Running Commands' ) 424case tutorial#separating-commands-semicolon 425echo ( _ 'Separating Commands (Semicolon)' ) 426case tutorial#startup-where-s-bashrc 427echo ( _ "Startup (Where's .bashrc?)" ) 428case tutorial#syntax-highlighting 429echo ( _ 'Syntax Highlighting' ) 430case tutorial#tab-completions 431echo ( _ 'Tab Completions' ) 432case tutorial#universal-variables 433echo ( _ 'Universal Variables' ) 434case tutorial#variables 435echo ( _ Variables) 436case tutorial#why-fish 437echo ( _ 'Why fish?' ) 438case tutorial#wildcards 439echo ( _ Wildcards) 440end 441end