aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions
Commit message (Collapse)AuthorAge
* __fish_print_{addresses,interaces}: Better OSX/BSDGravatar Fabian Homborg2015-09-24
|
* __fish_print_{addresses,interfaces}: Add alternative to net_toolsGravatar Fabian Homborg2015-09-24
| | | | | | | | | | | net_tools, which provides `ifconfig` and `netstat`, among other things, has last been updated in 2013. This means `ifconfig` on linux is basically dead. Instead of ifconfig, use `ip` (from iproute2), which is much more powerful and provides a much more annoying commandline syntax. Instead of netstat, just look at /sys/class/net.
* export: Enable values with "=" in themGravatar Fabian Homborg2015-09-24
| | | | | | Only split on the first "=" to achieve this. Closes #2403
* Fix aliases with whitespaceGravatar Fabian Homborg2015-09-23
| | | | | | | | And document how that stuff works. Fixes #2220 Also, the string stuff is cool.
* Refactor *vi* completions, add nvim wrapperGravatar Fabian Homborg2015-09-23
| | | | | | | This assumes `vim` is always vim (or close enough, nvim should also work), while `vi` could be either. Fixes #2416
* systemctl completions: Show instanced servicesGravatar Fabian Homborg2015-09-17
| | | | | This unfortunately requires us to do two systemctl calls, but it's still pretty fast.
* Allow set_color options in general for linux VTsGravatar Fabian Homborg2015-09-10
|
* Also allow bold, underline and printing colors in linux kernel VTsGravatar Fabian Homborg2015-09-10
| | | | | bold works, printing colors doesn't change anything and underline doesn't _break_.
* Add __fish_sgrepGravatar Fabian Homborg2015-09-09
| | | | | | Missed in b85a8bb because of `git commit -a`. Fixes #2372
* Rename sgrep to __fish_sgrepGravatar Fabian Homborg2015-09-09
| | | | Makes it harder to cause issues with aliases, see fish-shell#2245
* 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