aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_config_interactive.fish
Commit message (Collapse)AuthorAge
* `string escape` some eval callsGravatar Aaron Gyes2016-06-15
|
* Do not hardcode RGB values in color definitions.Gravatar Jorge Bucaran2016-06-01
|
* Check validity of fish_key_bindingsGravatar Fabian Homborg2016-05-22
| | | | | | This potentially leads to an unusable session (when fish_key_bindings is set in config.fish to a value without corresponding function), so we should take care.
* add `function --shadow-builtin` flagGravatar Kurtis Rader2016-05-14
| | | | | | | | | | | | | | It's currently too easy for someone to bork their shell by doing something like `function test; return 0; end`. That's obviously a silly, contrived, example but the point is that novice users who learn about functions are prone to do something like that without realizing it will bork the shell. Even expert users who know about the `test` builtin might forget that, say, `pwd` is a builtin. This change adds a `--shadow-builtin` flag that must be specified to indicate you know what you're doing. Fixes #3000
* fix the style of several functionsGravatar Kurtis Rader2016-05-08
| | | | | | I'm going to modify these functions as part of dealing with issue #3000 and don't want those changes to be masked by running the files through `make style`.
* Add missing color definitions to __fish_init_1_50_0 reset. (#2987)Gravatar Jorge Bucaran2016-05-01
| | | | | | | | | | | | | | * Add missing color definitions to __fish_init_1_50_0 reset. The values where determined by inspecting the values of: * fish_color_end * fish_color_user * fish_color_host after resetting the color theme via fish_config. * Add documentation for fish_color_user and fish_color_host.
* Move 24bit setup into config.fishGravatar Fabian Homborg2016-04-18
| | | | Fixes #2941.
* Skip greeting on empty variableGravatar Fabian Homborg2016-01-18
| | | | | | It used to be that way and we recommend `set fish_greeting` (i.e. set to empty) in the docs - possibly since we check if the variable is defined on upgrade.
* Disable 24bit-color on neovim's terminalGravatar Fabian Homborg2016-01-14
| | | | | | | | | | | | | | | Unfortunately, nvim will, even when running in a terminal that supports it, swallow the sequences whole, rendering the displayed text _white_. This means falling back to 256 colors is the lesser evil as at least a blue-ish color will display as blue while a red-ish will be red, instead of both showing white. nvim's behavior does _not_ change depending on $NVIM_TUI_ENABLE_TRUE_COLOR or any other option I could find and neovim-qt exhibits the same behavior. Fixes #2600.
* Pass the full argv to the NixOS command-not-found handlerGravatar Nathan Zadoks2016-01-03
| | | | | | | This patch is currently floated from the NixOS side as part of https://github.com/NixOS/nixpkgs/pull/12000, but prior versions of the hook ignore anything but the first argument anyway, so this is backwards-compatible.
* Immediately define command-not-found handlerGravatar Fabian Homborg2015-12-30
| | | | | | | | | | | This skips the weird dance where we'd define a simple handler and then later overwrite with a fancier one, once the first event came in. It turns out that isn't necessary, as it doesn't actually improve startup speed because the checks needed to define fancier handlers are fast. In case we are non-interactive, still define the simple handler, and keep the default handler for users to switch to.
* Remove temporary set_default functionGravatar Fabian Homborg2015-12-30
| | | | | | This could potentially delete a user-defined set_default on first start. It's also trivially done with set -q var; or set -U var val.
* Simplify greetingGravatar Fabian Homborg2015-12-29
| | | | We have already confirmed we're interactive, and `echo` is a builtin now.
* Update vte cwd on launchGravatar Fabian Homborg2015-12-12
| | | | Fixes #2418
* Enable 24-bit mode for selected terminalsGravatar Fabian Homborg2015-12-10
| | | | | | | | | | | | | | | Unfortunately, there's no standard way to detect support (importantly, terminfo doesn't encode it), but there's a variety of terminals that support it that we can detect. It's better than letting this functionality go to waste. Check KONSOLE_PROFILE_NAME instead of DBUS_SESSION because Konsole can be compiled without dbus support. Check ITERM_SESSION_ID's format for 24bit support This has changed since the last release, just like 24bit support. So if we check one, we get the other.
* 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_.
* 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
* 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
* 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 Unknown Signal 'winch'Gravatar PythEch2015-07-24
| | | | Fixes an annoying error that affects machines with Turkish locales
* 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.
* 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.
* 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
* 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
* Fix not found handler for fedoraGravatar Max Gonzih2015-01-18
|
* Support nixos command-not-found handlerGravatar Max Gonzih2014-12-22
|
* __fish_config_interactive: send CWD via escapes in Apple TerminalGravatar David Adam2014-11-20
| | | | Closes #68.
* 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.
* Minor tweaks to initial keybinding loadGravatar Kevin Ballard2014-10-02
| | | | | | | Remove comment that AFAICT is not true anymore. Ensure someone setting __fish_active_key_bindings as a universal variable doesn't screw up the initial keybinding load.
* Manpage completions: store in $XDG_DATA_HOMEGravatar David Adam2014-09-29
| | | | Closes #1343, works towards #1257.
* Only print fish_greeting for interactive shellsGravatar Kevin Ballard2014-09-21
| | | | | | Shell scripts that use `read` should not trigger fish_greeting. Fixes #1401.
* Reset fish_bind_mode when changing fish_key_bindingsGravatar Kevin Ballard2014-09-18
| | | | | | | Also avoid resetting bindings if fish_key_bindings is "modified" without actually changing. Fixes #1638.
* Adopt the new type -q flag in the other functionsGravatar Kevin Ballard2014-07-13
|
* Merge branch 'master' into 1218_rebaseGravatar ridiculousfish2014-03-29
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: builtin.cpp builtin_commandline.cpp highlight.cpp input.cpp input.h reader.cpp screen.cpp screen.h
| * Make fish install a command_not_found handler in non-interactive uses.Gravatar ridiculousfish2014-02-20
| | | | | | | | | | | | | | | | | | | | | | Previously, fish's command_not_found handler would be installed in __fish_config_interactive. Errors that occured early in startup (e.g. in config.fish) or in non-interactive mode would therefore not be reported. With this change, fish now exposes its default cnf handler as __fish_default_command_not_found_handler . config.fish then installs a cnfh that invokes the default. When fish goes interactive, the initial cnfh is overwritten with a fancier one, that may in turn fall back to invoking the default.
| * Redirect stderr of initial call to __fish_reload_key_bindings. Fixes ##1155Gravatar ridiculousfish2014-02-03
| |
| * Squashed commit of the following:Gravatar David Adam2014-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit d81ae2665fb7ff5123d8472e1d40d7d57fb4b291 Author: Max Gonzih <gonzih@gmail.com> Date: Sun Feb 2 16:22:18 2014 +0300 Check for command-not-found command on suse commit 004b794c82d79bc9463cdb52784b9b5ea49f1c76 Author: Max Gonzih <gonzih@gmail.com> Date: Sun Feb 2 14:04:41 2014 +0300 Fix cnf handler for Suse and Fedora fixes #1208
* | Set selection color to purpleGravatar Julian Aron Prenner2014-01-15
|/
* Use fish from $__fish_bin_dir while calling fish_update_completions at startupGravatar Siteshwar Vashisht2013-11-17
|
* Don't show warning while generating man page completions on startupGravatar Siteshwar Vashisht2013-11-12
|
* Autogenerate manpage completions in background if they do not existGravatar Siteshwar Vashisht2013-11-12
|
* Rename internal functions for consistency.Gravatar nulltrek2013-09-12
|
* Fix VTE version testGravatar Konrad Borowski2013-09-04
|
* Notify vte-based terminals of $PWD change (#906)Gravatar Tim Cuthbertson2013-09-04
|
* Fix tabs in share/functions/__fish_config_interactive.fishGravatar ridiculousfish2013-08-24
|
* Fix "command not found" handler behaviour.Gravatar nulltrek2013-08-24
|
* Avoid standard command not found message when command-not-found is foundGravatar Konrad Borowski2013-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit c208bc30b7747b3743212483b3dd7e3f90819f49 Merge: 97bea94 2633372 Author: Konrad Borowski <glitchmr@myopera.com> Date: Fri Jul 19 09:56:12 2013 +0200 Merge branch 'command-not-found' of git://github.com/GlitchMr/fish-shell into command-not-found commit 26333721b9048333d1e7932505c221a31fd0e624 Author: Konrad Borowski <glitchmr@myopera.com> Date: Fri Jul 19 09:55:13 2013 +0200 Fix command_not_found when not found commit db34460bb51a4b1c1c456c2e535ae8d913d1071e Author: Konrad Borowski <glitchmr@myopera.com> Date: Wed Jul 17 13:41:57 2013 +0200 Avoid showing standard command not found message when possible In bash, command-not-found handler causes the standard messages to not appear. Because of events model in fish, it isn't really an option, so I moved the standard command not found message to fish function. This way, the messages aren't repeated, and the standard command not found message appears only when handler couldn't be found.