aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions
Commit message (Collapse)AuthorAge
* Only pass the command name to command-not-foundGravatar ridiculousfish2015-04-20
| | | | | | | | With the fix for #365, fish_command_not_found event handlers receive the command and all of its arguments. But commands like /usr/lib/command-not-found expect only the command name. So when invoking an external command, just pass the command name, not all of the arguments.
* Switch back to insert mode after executing a command in vi modeGravatar ridiculousfish2015-04-08
| | | | Fixes #1933
* Fix funcsave to not delete the function it just createdGravatar ridiculousfish2015-04-06
| | | | | | | | | | In 73f344f41bd2, we allowed autoloaded functions to be deleted. For some reason, funcsave immediately deletes the function it creates. This previously did very little, since the function would immediately be re-autoloaded, but with the fix for 73f344f41bd2 the function gets tombstoned. So the effect is that funcsave makes the function disappear! This simply removes the erase call, which dates back to fish 1.x.
* Fix #1978:"ul: unknown escape sequence" when asking for helpGravatar Sanne Wouda2015-04-04
| | | | | | It seems that `ul` can't handle the escape sequences for bold text that `nroff` generates on my system. Fixed by either removing `| ul`, or adding `-c` to the `nroff` command. Needs testing for old (OSX?) versions of nroff.
* __fish_complete_python: fix regex to be POSIX-compatibleGravatar David Adam2015-03-30
| | | | Closes #2004.
* Revert "__fish_config_interactive: warn users that fishd is going away"Gravatar David Adam2015-03-30
| | | | | | This reverts commit ad61c3f0d6be8b7eca4a70ccd29ba7ca6565cc6c. Work on #1730.
* __fish_config_interactive: warn users that fishd is going awayGravatar David Adam2015-03-26
| | | | Work on #1730
* abbr: coalesce multiple arguments to --addGravatar David Adam2015-03-13
| | | | Makes the behaviour of the script match the documentation.
* systemctl completions: Only list matching units on enable/disableGravatar Fabian Homborg2015-03-06
|
* systemctl completions: Add more unit types and commandsGravatar Fabian Homborg2015-03-06
| | | | It should now support all unit types mentioned in systemd.unit(5)
* systemctl completions: Support user-modeGravatar Fabian Homborg2015-03-06
|
* isatty: use command test instead of redirectionsGravatar David Adam2015-02-01
| | | | | | Adds a fork but can't use builtin test yet. Closes #1870.
* isatty: revert to previous behaviourGravatar David Adam2015-02-01
| | | | This partially reverts commit 60808a4820b1714.
* Add command-not-found handler for Arch LinuxGravatar T. Jameson Little2015-01-30
| | | | | - checks for `pkgfile`, which is an optional (but official) package used for searching for packages given a file
* Add function to ouput hg branch and status for a promptGravatar LoveIsGrief2015-01-30
| | | | This is an adaptation of terlar's git prompt output
* default key bindings: ignore FocusIn/FocusOut control sequencesGravatar David Adam2015-01-30
| | | | Closes #1917.
* Fix not found handler for fedoraGravatar Max Gonzih2015-01-18
|
* Clean up recent fix for #1892Gravatar ridiculousfish2015-01-17
| | | | Restore 906d235 and simplify how __fish_restore_status works
* Ignore error message when not on a Gentoo systemGravatar Jelte Fennema2015-01-17
|
* Don't define unnamespaced internal function.Gravatar Konrad Borowski2015-01-17
|
* Fix: eval should preserve previous $status if the evaluated block does not ↵Gravatar Jorge Bucaran2015-01-17
| | | | | | change it Empty functions may return 1 when eval is used due to the $status not being correctly preserved inside the function definition.
* Add more expository comments to eval, and remove a useless parameterGravatar ridiculousfish2015-01-07
|
* Change fish_paginate to paginate both stdout and stderr.Gravatar Andreas Heiduk2014-12-28
|
* Support nixos command-not-found handlerGravatar Max Gonzih2014-12-22
|
* Added `export` alias for set global variable, made for sh/bash/zsh compatibilityGravatar Rack Lin2014-12-01
| | | | | Signed-off-by: Rack Lin <racklin@gmail.com> Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>
* Update various strings for translation, avoid _ for non-translationsGravatar David Adam2014-11-25
| | | | | Use __ instead of _ as a placeholder for ignored variables in `read` statements.
* grep.fish: don't set GREP_COLORGravatar David Adam2014-11-25
| | | | | | grep will fall back to the default colors. Closes #1316.
* grep.fish: don't use GREP_OPTIONS as it is deprecatedGravatar David Adam2014-11-25
| | | | Closes #1825.
* __fish_config_interactive: send CWD via escapes in Apple TerminalGravatar David Adam2014-11-20
| | | | Closes #68.
* __fish_urlencode: rework to behave properly on BSD/OS XGravatar David Adam2014-11-20
| | | | Work on #68.
* abbr.fish: escape the output of abbr --showGravatar David Adam2014-11-16
| | | | | | | Allows abbreviations containing embedded newlines, etc., to be displayed and exported properly. Work on #731.
* abbr.fish: improve support for corner casesGravatar David Adam2014-11-16
| | | | | | | Handle unusual cases ('=abc', ' =abc') better - regression from 8e8e6314due to a7bab7b. Work on #731.
* abbr/web_config: support space-delimited abbreviationsGravatar David Adam2014-11-15
| | | | | | | | | Support for space-delimited abbreviations was added to the expansion parser in fbade198; this commit extends that support to the user-facing tools, and documents the space-separated behaviour. Equals-delimited abbreviations are expected to be removed before the next release. Work on #731.
* __fish_print_packages: add support for zypperGravatar David Adam2014-11-13
| | | | Closes #1787.
* __fish_systemctl_*: use systemctl to generate the list of unitsGravatar David Adam2014-11-10
| | | | | | Closes #1804. Note that if systemd is not running, the completion will fail.
* Clean up vared error message outputGravatar ridiculousfish2014-11-09
| | | | Fixes #1323
* Remove pre-1.22 migration support in fish_config_interactiveGravatar ridiculousfish2014-11-09
| | | | | This removes some gnarly and probably broken code that attempts to upgrade from fish 1.21 to fish 1.22. Fixes #1714.
* vi bindings: add CTRL-C handler in default modeGravatar Jared Grubb2014-10-31
| | | | | | There is no CTRL-C handler for the default mode in the vi bindings. This makes it difficult to say "never mind" and start a new command line like you can do in bash's vi mode. There were CTRL-C handlers for insert and visual modes that go back to default mode, but nothing happens in default mode. I copy-pasted the CTRL-C handler from the default key bindings file.
* history: put the output through the pager in interactive modeGravatar David Adam2014-10-26
| | | | | | | | (Ideally, the behaviour of git could be implemented: pipe the input through a pager iff the length is > window size and in interactive mode). Closes #1076.
* prompt_pwd: Use tilde expansion to get real full home pathGravatar David Adam2014-10-26
| | | | Closes #1133.
* Allow funced to retry on errorGravatar ridiculousfish2014-10-17
| | | | Fixes #1371
* ls: find and use various dircolors initialisation files, if they existGravatar David Adam2014-10-17
| | | | Closes #1758.
* A little extra tweaking so builtin_print_help looks betterGravatar Kevin Ballard2014-10-10
| | | | | | | The terminal width magic that __fish_print_help learned doesn't help when builtin_print_help runs it in a subshell. Instead, add an undocumented --tty-width flag to __fish_print_help that's used to pass the terminal width.
* Rewrite __fish_print_help to produce better resultsGravatar Kevin Ballard2014-10-09
| | | | | | | | | | | | As a result of this rewrite, the output now: * Expands to fit the terminal width, like `man` does * Preprocesses the manpage with `tbl` just in case, since `man` does this, even though I doubt any fish manpages use `tbl` formatting. * Handle bold/underline with the `ul` command as it was designed for instead of trying to fake it with `sed`. * Compresses blank lines as `man` does with the default `less -is` pager.
* Support -h/--help with `eval`Gravatar Kevin Ballard2014-10-09
| | | | | | `eval` prints help if given a single argument of -h or --help. Fixes #1379.
* Rewrite `abbr` functionGravatar Kevin Ballard2014-10-07
| | | | | | | | | | | | The usage is still the same, but it's a lot more robust, and also no longer assumes $fish_user_abbreviations must be a universal variable. This also fixes the unexpected error output when calling `abbr -a` with no existing abbreviations. Calling `abbr -a` with an abbreviation that already exists now silently overwrites the abbreviation, just like `function` and `bind` do, instead of complaining.
* abbr.fish: add abbr, a command to manipulate abbreviationsGravatar David Adam2014-10-05
| | | | Work on #731.
* Clean up prompt_pwd with the new function -V flagGravatar Kevin Ballard2014-10-02
| | | | Also fixes `cd /private` displaying as no path on OS X.
* Update psub for the new --inherit-variable flagGravatar Kevin Ballard2014-10-02
| | | | | Also do some minor formatting cleanup, make psub return 1 when executed outside of a command substitution, and make it respect $TMPDIR.
* # This is a combination of 2 commits.Gravatar Kevin Ballard2014-10-02
| | | | | | | | | | # The first commit's message is: Simplify default fish_prompt No need for the set_color caching now that it's a builtin. Also simplify the 3 classic prompts in fish_config's sample_prompts set.