aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions
Commit message (Collapse)AuthorAge
* Normalize *diff completionsGravatar Fabian Homborg2015-07-20
|
* Normalize *grep completionsGravatar Fabian Homborg2015-07-20
|
* Remove function and descriptions from rc-service completionGravatar Fabian Homborg2015-07-20
| | | | | | The descriptions are "Start: Start the service" "Stop : Stop the service" "Restart: Restart the service"
* Normalize *tex completionsGravatar Fabian Homborg2015-07-20
|
* Normalize python* completionGravatar Fabian Homborg2015-07-20
|
* Normalize *sum (md5sum et al) completionsGravatar Fabian Homborg2015-07-20
|
* Normalize svn completionGravatar Fabian Homborg2015-07-20
|
* Normalize atool completionsGravatar Fabian Homborg2015-07-20
| | | | Remove function, use wrapping.
* Implement lowercase-r replace in fish_vi_modeGravatar ridiculousfish2015-07-20
| | | | Fixes #1595
* pacman completion: Turn into regular completionGravatar Fabian Homborg2015-07-19
| | | | | | | | | | This used to be a function because we didn't have complete -w Use that and it becomes a bit simpler. This also simplifies the code in a few other ways (like removing a useless-use-of-cat) and adds comments about a few edgecases.
* Add .fish suffix to funced's tempfile nameGravatar Fabian Homborg2015-07-19
| | | | This allows editors (like emacs) to pick up on the fact that it's a fish script.
* ctrl-p as up-or-search and ctrl-n as down-or-searchGravatar Jesse Nazario2015-07-19
|
* __fish_git_prompt: fix stateseparator color in informative_statusGravatar Vladimir Rudnyh2015-07-12
| | | | | In informative_status mode stateseparator did not use fish_git_prompt_color settings.
* update function parameter for EXIT signalGravatar David Woods2015-07-12
| | | | | | changed `function __trap_handler_EXIT --on-exit %self` to `function __trap_handler_EXIT --on-process-exit %self` I'm guessing the on-exit syntax was from an older version? Trapping EXIT with that syntax caused errors.
* Improve dirs output and add -c optionGravatar Derek Harland2015-07-12
| | | | | | Adds behaviour similar to bash: - shorten dirs output by representing $HOME as ~; - provide a '-c' option to clear the stack
* Alter pushd to add more bash-like behaviourGravatar Derek Harland2015-07-12
| | | | | | | The following behaviour is added: - an empty pushd exchanges the top two directories in the stack; - pushd +<n> rotates the stack so that the n-th directory (counting from the left of the list shown by dirs, starting with zero) is at the top; - pushd -<n> rotates the stack so that the nth directory (counting from the right of the list shown by dirs, starting with zero) is at the top.
* Add completions for systemd's machinectlGravatar Fabian Homborg2015-07-02
|
* Add completions for Debian's Apache tools, a2{en,dis}{mod,conf,site}Gravatar David Adam2015-06-26
| | | | Work on #2141.
* __fish_print_hostnames: ignore errors from getentGravatar David Adam2015-06-19
| | | | Closes #2137.
* Tweak and add tests for abbrGravatar ridiculousfish2015-06-14
| | | | | | | | | | | 1. When run with no arguments, make abbr do the equivalent of `abbr --show` 2. Enable "implicit add", e.g. `abbr gco git checkout` 3. Teach `abbr --show` to not use quotes for simple cases 4. Teach abbr to output -- when the abbreviation has leading dashes Add some basic tests to abbr too.
* Rework how the mode is reported in fish_vi_modeGravatar ridiculousfish2015-06-14
| | | | | | | | | Add a new function fish_mode_prompt which (if it is defined) has its output prepended to the left prompt. Rather than replacing the prompt wholesale, make fish_vi_mode enable this function by setting a variable __fish_vi_mode. This enables vi mode to interoperate nicely with custom prompts. Users who want to change how the mode is reported can either redefine this function or erase it entirely. Fixes #1988.
* Merge branch 'Integration_2.2.0'Gravatar David Adam2015-06-05
|\
| * vi bindings: clear commandline with Ctrl-CGravatar David Adam2015-06-05
| | | | | | | | Closes #2077.
* | Add 'bigword' vi key bindingsGravatar Michael Steed2015-06-04
| | | | | | | | | | | | | | | | | | | | - Add four new functions: forward-bigword, backward-bigword, kill-bigword, backward-kill-bigword - Add new enum move_word_style_whitespace and related state machine method - Change vi key bindings to operate on bigwords: B, gE, W, E, dW, diW, daW, dE, dB, dgE, cW, ciW, caW, cE, cB, cgE, yW, yiW, yaW, yE, yB, ygE
* | Revert "Notify vte-based terminals when a command completes."Gravatar ridiculousfish2015-05-30
| | | | | | | | | | | | | | Backing out fix for #2096 until we know how to avoid spamming other terminals (#2102) This reverts commit 5c4acc8ee1485e40b00ea0578aeff338078cfb8b.
* | Notify vte-based terminals when a command completes.Gravatar Ben Liblit2015-05-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notification is sent using an OSC 777 escape sequence as described at http://known.phyks.me/2014/local-notifications-for-weechat-and-urxvt. The specific notification is crafted to match that emitted by bash when running under Fedora 22 with the "vte-profile" RPM installed. See the code for "__vte_prompt_command" starting at http://pkgs.fedoraproject.org/cgit/vte291.git/tree/vte291-command-notify.patch#n307 to see exactly what bash produces. My approach is, however, a bit more paranoid about control characters embedded in commands. Gnome-terminal 3.16 responds to this escape sequence by posting a desktop notification if the containing terminal window does not have focus. This lets the user know that a long-running background command has completed. Job notification is promoted as a Fedora 22 feature (http://fedoramagazine.org/terminal-job-notifications-in-fedora-22-workstation/), so it would be good for fish users to be benefit from it. Conversely, anyone who does not want this feature can use "functions --erase __notify_vte_command_completed" to turn it off.
| * abbr: rename --remove to --eraseGravatar David Adam2015-05-22
|/ | | | | | for consistency with other fish commands Closes #2071.
* 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
|