aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions
Commit message (Collapse)AuthorAge
* Vcs prompt: Break if vcs isn't installedGravatar Fabian Homborg2015-09-06
| | | | | Prevents an annoying error message. Fixes #2363.
* Use $VISUAL before $EDITOR in funcedGravatar Fabian Homborg2015-09-02
| | | | Closes #2268
* Load fish_user_key_bindings for any binding (including vi)Gravatar Fabian Homborg2015-09-01
| | | | | | | | | | | fish_user_key_bindings is the user's, and they should know if they want vi-ish bindings or emacs-ish (or nano-ish). If they want to define multiple, they can also do that (e.g. via checking what $fish_key_bindings is set to). Fixes #2254 CC @kballard
* Add escape sequences for arrows in some linux VTsGravatar Fabian Homborg2015-09-01
| | | | | | | Why this is only in some, I don't know, but these don't seem to interfere with anything. Fixes #2309
* Revert "Fix missing variable expansion $ in psub"Gravatar Fabian Homborg2015-08-31
| | | | | | | | That change was a bit too eager as the mkfifo route doesn't currently work. See #1040 and #2052. This reverts commit a17b9fdabaccb126b4e619b861cc914568616933.
* Fix missing variable expansion $ in psubGravatar Fabian Homborg2015-08-31
|
* Make overriding cnf-handler workGravatar Fabian Homborg2015-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See #1925: This allows users to disable the cnf-logic which can be quite slow on small hardware (like a raspberry pi). Squashed commit of the following: commit 742a59e30d8db24b6bb5067d4204d4b5cc01c1c3 Author: Fabian Homborg <FHomborg@gmail.com> Date: Sun Aug 30 18:23:41 2015 +0200 Erase startup cnf-handler early Simplifies the code a bit - in particular it removes the special-casing from the startup handler. commit 638a97e7f31f302b65e044c93c638c03a69e31f5 Author: Fabian Homborg <FHomborg@gmail.com> Date: Mon Aug 24 20:14:46 2015 +0200 Make overriding cnf-handler work Do this by renaming the __fish_command_not_found_handler used during startup to __fish_startup_command_not_found_handler. That allows us to check if __fish_command_not_found_handler has been defined and skip the setup of the normal one. Now disabling cnf-handling can be done via defining an empty __fish_command_not_found_handler in config.fish
* Add a shell suspend functionGravatar Fabian Homborg2015-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit ede9e510751497d61ff0e78fd948e901171cf6f9 Merge: 938da30 239d2a2 Author: Fabian Homborg <FHomborg@gmail.com> Date: Thu Aug 6 18:47:43 2015 +0200 Merge branch 'suspend' of https://github.com/mwm/fish-shell into suspend commit 239d2a28e1868577cc193a8825c64c468d83e944 Author: Mike Meyer <mwm@mired.org> Date: Thu Aug 6 11:24:32 2015 -0500 Handle interactive & login shells, SHLVL checks, and better message. commit 6334047ebd08b6a7f609bdb232f0dddb569e8a59 Author: Mike Meyer <mwm@mired.org> Date: Tue Aug 4 08:53:10 2015 -0500 Add a description to suspend commit 080458b31c47c44823cfc27fc577f68640006407 Author: Mike Meyer <mwm@mired.org> Date: Tue Aug 4 07:05:17 2015 -0500 Add a shell suspend function
* Improve situation for linux in-kernel VTs (TERM = "linux")Gravatar Fabian Homborg2015-08-30
| | | | | | | | | This adds a special colorscheme and prompt function guaranteed to work on a VT and activates them automatically if $TERM = "linux". set_color is overridden to only allow the 8 colors VTs have (under the assumption those are always the same) and the color variables are shadowed with global ones so they don't pollute our nice capable terms.
* Fix spellingGravatar Annika Backstrom2015-08-30
|
* {prev,next}d-or-*-word: Fix for multiple linesGravatar Fabian Homborg2015-08-26
| | | | Fixes #2333
* Make alt-arrow in iTerm2 do the same thing as elsewhereGravatar Fabian Homborg2015-08-25
| | | | | | nextd-or-forward-word and such Fixes #1836
* Match the whole real home directory in prompt_pwd.Gravatar Jonas Hietala2015-08-08
|
* Making spacing of .fish files uniform.Gravatar Nicholas Maccharoli2015-08-08
|
* vi-mode: Make \cc go to normal from insert modeGravatar Fabian Homborg2015-08-04
| | | | | | Keep the behavior for normal mode Fixes #2228
* functions/history.fish: whitespace only changeGravatar David Adam2015-07-31
| | | | | | Run through fish_indent, mismatching indents actually confusing. [skip ci]
* functions/history.fish: validate command line arguments in wrapperGravatar David Adam2015-07-31
| | | | | | | Closes #2055. Implements the standard `--` option for delimiting options from arguments; to search for "--", use `history --search -- --`.
* Merge branch 'death_of_mimedb'Gravatar David Adam2015-07-25
|\
* | Fix Unknown Signal 'winch'Gravatar PythEch2015-07-24
| | | | | | | | Fixes an annoying error that affects machines with Turkish locales
* | __fish_print_mounted: expand scope on non-Linux platformsGravatar David Adam2015-07-24
| |
* | Fix mountpoints with spaces on linuxGravatar Fabian Homborg2015-07-24
| | | | | | | | Signed-off-by: David Adam <zanchey@ucc.gu.uwa.edu.au>
| * death of mimedb: remove mimedb from the treeGravatar David Adam2015-07-23
| |
| * open: drop mimedb dependencyGravatar David Adam2015-07-23
| |
| * __fish_complete_suffix: don't provide file description by defaultGravatar David Adam2015-07-23
| | | | | | | | | | Drops dependency on the mimedb tool and reflects the changes made to the default chooser for files in #279.
| * __fish_{filter,complete}_mime: drop from treeGravatar David Adam2015-07-23
|/ | | | | These are undocumented and unused, and rely on mimedb which is being removed from the tree.
* 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.