David Adam
ad61c3f0d6
__fish_config_interactive: warn users that fishd is going away
...
Work on #1730
2015-03-26 16:24:52 +08:00
T. Jameson Little
793784c087
Add command-not-found handler for Arch Linux
...
- checks for `pkgfile`, which is an optional (but official)
package used for searching for packages given a file
2015-01-30 22:01:40 -07:00
Max Gonzih
dce487380c
Fix not found handler for fedora
2015-01-18 11:52:15 +01:00
Max Gonzih
46cd89c2db
Support nixos command-not-found handler
2014-12-22 11:16:36 +08:00
David Adam
918d5595bd
__fish_config_interactive: send CWD via escapes in Apple Terminal
...
Closes #68 .
2014-11-20 14:45:11 +08:00
ridiculousfish
43d23ee56e
Remove pre-1.22 migration support in fish_config_interactive
...
This removes some gnarly and probably broken code that attempts
to upgrade from fish 1.21 to fish 1.22. Fixes #1714 .
2014-11-09 13:27:56 -08:00
Kevin Ballard
4ba95ad1c3
Minor tweaks to initial keybinding load
...
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.
2014-10-02 12:14:22 -07:00
David Adam
a186f04f15
Manpage completions: store in $XDG_DATA_HOME
...
Closes #1343 , works towards #1257 .
2014-09-29 19:39:36 +08:00
Kevin Ballard
e1f623f548
Only print fish_greeting for interactive shells
...
Shell scripts that use `read` should not trigger fish_greeting.
Fixes #1401 .
2014-09-21 20:35:33 -07:00
Kevin Ballard
0a32d96b27
Reset fish_bind_mode when changing fish_key_bindings
...
Also avoid resetting bindings if fish_key_bindings is "modified" without
actually changing.
Fixes #1638 .
2014-09-18 15:46:17 -07:00
Kevin Ballard
533496e43a
Adopt the new type -q flag in the other functions
2014-07-13 19:11:29 -07:00
ridiculousfish
d4fafeb6d6
Merge branch 'master' into 1218_rebase
...
Conflicts:
builtin.cpp
builtin_commandline.cpp
highlight.cpp
input.cpp
input.h
reader.cpp
screen.cpp
screen.h
2014-03-29 14:19:45 -07:00
ridiculousfish
3ab954644f
Make fish install a command_not_found handler in non-interactive uses.
...
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.
2014-02-20 10:26:57 -08:00
ridiculousfish
7d345018af
Redirect stderr of initial call to __fish_reload_key_bindings. Fixes ##1155
2014-02-03 16:46:01 -08:00
David Adam
27b6fe682d
Squashed commit of the following:
...
commit d81ae2665f
Author: Max Gonzih <gonzih@gmail.com>
Date: Sun Feb 2 16:22:18 2014 +0300
Check for command-not-found command on suse
commit 004b794c82
Author: Max Gonzih <gonzih@gmail.com>
Date: Sun Feb 2 14:04:41 2014 +0300
Fix cnf handler for Suse and Fedora
fixes #1208
2014-02-02 21:42:24 +08:00
Julian Aron Prenner
444cb894be
Set selection color to purple
2014-01-15 22:41:10 +01:00
Siteshwar Vashisht
8fc26c1e58
Use fish from $__fish_bin_dir while calling fish_update_completions at startup
2013-11-17 16:24:00 +05:30
Siteshwar Vashisht
0de26732bf
Don't show warning while generating man page completions on startup
2013-11-12 22:14:14 +05:30
Siteshwar Vashisht
0f02997bcc
Autogenerate manpage completions in background if they do not exist
2013-11-12 22:14:14 +05:30
nulltrek
1b521d0822
Rename internal functions for consistency.
2013-09-12 11:46:31 +02:00
Konrad Borowski
fe10f98038
Fix VTE version test
2013-09-04 22:08:44 +02:00
Tim Cuthbertson
74e27a0a82
Notify vte-based terminals of $PWD change ( #906 )
2013-09-04 20:30:42 +02:00
ridiculousfish
8605cc685d
Fix tabs in share/functions/__fish_config_interactive.fish
2013-08-24 12:20:21 -07:00
nulltrek
9a49b2c9fb
Fix "command not found" handler behaviour.
2013-08-24 12:16:28 -07:00
Konrad Borowski
58ad04b61c
Avoid standard command not found message when command-not-found is found
...
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 26333721b9
Author: Konrad Borowski <glitchmr@myopera.com>
Date: Fri Jul 19 09:55:13 2013 +0200
Fix command_not_found when not found
commit db34460bb5
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.
2013-07-19 09:56:47 +02:00
ridiculousfish
3d0d9a250b
Remove Goodbye message. https://github.com/fish-shell/fish-shell/issues/521
2013-01-21 14:54:15 -08:00
ridiculousfish
d4a171a791
Fix to make fish_command_not_found_handler run the first time
2012-12-11 16:08:37 -08:00
ridiculousfish
978066a6de
Attempt to delay looking up command-not-found until the first not-found command to speed up startup
2012-12-11 16:00:49 -08:00
ridiculousfish
5827bfd9a2
Default fish_pager_color_description to '555 yellow'
...
Fixes https://github.com/fish-shell/fish-shell/issues/280
2012-11-18 03:17:51 -08:00
ridiculousfish
8a63326411
Removed backwards compatibility check for fish_user_keybindings
2012-10-20 12:21:41 -07:00
Nate Soares
01608cf062
Normalized some inconsistent whitespace.
2012-10-20 12:15:49 -07:00
Nate Soares
e06d6ce4a2
Revive support for fish_user_keybindings
...
This is undocumented and here to preserve backwards compatibility.
2012-10-20 12:15:49 -07:00
Nate Soares
58a0c6f9d3
added missing underscore
2012-10-20 12:15:49 -07:00
Nate Soares
f310f1e96c
keybindings → key_bindings (for consistency)
2012-10-20 12:15:49 -07:00
maxfl
e5939d1a18
Disable default fish_pager_color_secondary
...
since it should be different, depending on terminal background
2012-06-29 18:53:22 -07:00
maxfl
a02aa7a316
Step coloring for fish_pager introduces new variable
...
fish_pager_color_secondary to set background of every second completion
line. It simplifies finding the options corresponding to given
description. Default color is 151515.
2012-06-29 18:53:22 -07:00
Kevin Ballard
4d1c0eaa52
Fix var set in __fish_config_interactive.fish
...
__fish_config_interactive.fish uses the presence of __fish_init_1_50_0
to decide whether it should perform a one-time initialization of
universal variables. Unfortunately, it sets the variable
__fish_init_1_23_0. Fix this to set __fish_init_1_50_0 instead.
2012-06-24 13:57:15 -07:00
ridiculousfish
64afada7f0
Switched from using 'type' to 'functions --query' since it's a lot cheaper
2012-06-10 00:21:11 -07:00
adisbladis
9f563f4873
Introduced fish_user_keybindings
2012-06-10 00:21:11 -07:00
ridiculousfish
d871095d0b
Updated "last run version" to __fish_init_1_50_0. Updated colors for non term-256 compatibility
2012-06-05 01:01:30 -07:00
adisbladis
377d93d1cf
Missing -s to which fixed
2012-05-30 21:08:44 +02:00
ridiculousfish
4afdcf56fc
Tweak a few default colors
...
Fix the make_pkg script to actually build an installable package that doesn't immediately barf
2012-05-29 21:14:19 -07:00
ridiculousfish
0e4f2cca01
Fix to stop setting a default CDPATH
2012-05-05 14:34:59 -07:00
ridiculousfish
307ea6dce2
Removed extra newline from Goodbye output
2012-04-25 13:37:01 -07:00
ridiculousfish
953ab4b3cf
Clean up __fish_config_interactive a little bit
2012-04-24 11:12:04 -07:00
ridiculousfish
fb2ed355ec
Improve fork reporting
...
Save a couple of forks during init
2012-04-24 10:10:43 -07:00
ridiculousfish
ce859c9e92
Added some missing calls to setup_fork_guards() in utilities.
...
Made echo a builtin
2012-03-07 11:35:22 -08:00
ridiculousfish
0a4c72e78b
Added color.h, color.cpp. Got term256 colors working.
2012-02-12 18:05:59 -08:00
ridiculousfish
382ffe9b6a
Added autosuggestion color variable fish_color_autosuggestion
...
Fixed that nasty bug where fish would apply a color to both the foreground and background (yuck)
2012-02-06 20:14:19 -08:00
James Vega
4f9b07e979
Allow fish_greeting to be NULL or an array
...
Treat fish_greeting as a whole when show up the greeting messages. And
the user may want to set fish_greeting to an null value or an array.
This requires that the variable be quoted when used as an argument for
switch in __fish_config_interactive.
Signed-off-by: James Vega <jamessan@debian.org>
[modified the commit message]
Signed-off-by: Grissiom <chaos.proton@gmail.com>
2010-11-24 00:49:15 +08:00
Grissiom
70322077d2
remove trialing spaces #2
2010-09-18 10:18:26 +08:00
axel
07717a3570
Add possibility to define greeting function, suggested by Chris Miller
...
darcs-hash:20090216210450-ac50b-9b4f7c5bf45afaf21d51e46ff8c2b11d171fcbf2.gz
2009-02-17 07:04:50 +10:00
liljencrantz
1f6fa1208e
Search for command-not-found in PATH on startup, since older implementations place it there
...
darcs-hash:20080115122953-75c98-05ef8cb650a942c59dfa35aa63b25ccd49614dde.gz
2008-01-15 22:29:53 +10:00
liljencrantz
f3b6b74568
Oops. Made a minor but important typo in previous cleanup patch. :-(
...
darcs-hash:20080115004050-75c98-3f7f733cca054d8685ec5df68d6467057ea5be53.gz
2008-01-15 10:40:50 +10:00
liljencrantz
ab94a397c3
Drop minor typo, add a few code comments
...
darcs-hash:20080114225828-75c98-f67f17d7f3148b0bcc74ea53536d52da80667e55.gz
2008-01-15 08:58:28 +10:00
liljencrantz
537ab32dd9
Add support for the Ubuntu 'command-no-found' handler, which suggests a package to install in order to get a command.
...
darcs-hash:20080114223124-75c98-ab1658d54086394cf13f3a6210543c0b790362c4.gz
2008-01-15 08:31:24 +10:00
liljencrantz
39c16a7770
Add check for existance of fish_greeting variable
...
darcs-hash:20080112185319-75c98-3b5231b1a956c94e8800dae033f3672622104340.gz
2008-01-13 04:53:19 +10:00
liljencrantz
52aaf60510
Fix spelling, thanks to Chris Rebert
...
darcs-hash:20080112184042-75c98-1f776d6f099003efd9a0c4ed45100c3a02e80e19.gz
2008-01-13 04:40:42 +10:00
liljencrantz
da4a4bcc18
Only set various startup defaults once. Even if the user removes them, do not try to reset them.
...
darcs-hash:20080108161856-75c98-7d228f7a0c62aa8be74f66ce72d0cadbc3030f5d.gz
2008-01-09 02:18:56 +10:00
liljencrantz
286ce1d6a4
Only set the fish greeting variable on the very first startup
...
darcs-hash:20080108152708-75c98-d1aa82fbcf070b74f402a6b33e687ccf615fb104.gz
2008-01-09 01:27:08 +10:00
liljencrantz
2c5151bb78
Fix bug in key binding code causing unneeded error messages
...
darcs-hash:20071031091503-75c98-3ab5786c1f991e4ea37c33b76823a487f25fab64.gz
2007-10-31 19:15:03 +10:00
liljencrantz
8cd8c3002e
Actually make the previously defined function for reloading key bindings on chage of function into an event handler as intended...
...
darcs-hash:20070930225557-75c98-284157fbbc56effe781bf26c21499a8e5586e563.gz
2007-10-01 08:55:57 +10:00
liljencrantz
4b85eb32d7
Remove readline legacy input function 'winch' and replace its functionality with an event handler function. Once again make the null keybinding do nothing. There are various sitauations where you want to perform a repaint at just the right time, and more or less by luck it worked very well to do this on null, but this really shouldn't happen and no longer does. Hopefully if new repainting issues turn up, they can be fixed at the root instead of once again reapplying this broken bandaid.
...
darcs-hash:20070930225354-75c98-8e2b518aa0ef694cee889c1c599ff4f158d9eb7f.gz
2007-10-01 08:53:54 +10:00
liljencrantz
3a73b60956
Ignore errors when autoloading keybindings
...
darcs-hash:20070928213741-75c98-8339e7f5f5b465af315efd606fe866624f958320.gz
2007-09-29 07:37:41 +10:00
liljencrantz
cf8e746d0c
First stab at dropping all support for readlines inputrc files and instead using an internal system for performing keybinding.
...
darcs-hash:20070925161447-75c98-1feaef88a4b518badb7879f598f06ab650a8f93b.gz
2007-09-26 02:14:47 +10:00
liljencrantz
5ecd0e22bf
Remove a few calls to the test command in favour of the switch builtin to speed statup up
...
darcs-hash:20070922190734-75c98-0e63a0ed6685edc2c9aa941f0b26c14466c7af6a.gz
2007-09-23 05:07:34 +10:00
liljencrantz
06de2602cb
Clean up interactive mode init a bit. Move a few utility functions to their own files.
...
darcs-hash:20070921205212-75c98-b8b6f88e151e8d0d2fca21626bf8e36a22c565b1.gz
2007-09-22 06:52:12 +10:00
liljencrantz
ad02bb9b48
Add a 'generic' type of event that can be emited from any piece of code or by the user. Use this event layer to perform interactive configuration startup at the correct time.
...
darcs-hash:20070819164230-75c98-f91b8a73de7bbbb500d80770ddf4d2d46ae592cc.gz
2007-08-20 02:42:30 +10:00