fish-shell/share/functions
Kevin Ballard b604321169 Fix showupstream behavior in __fish_git_prompt
The __fish_git_prompt_show_upstream helper function was inadvertently
looking at the misnamed variable __fish_git_prompt_show_upstream in some
cases, including when implementing the bash.showUpstream override.
Fixing the script to use __fish_git_prompt_showupstream triggered an
infinite loop because the --on-variable hook does not distinguish
between local and global variables.

Update the script to set a completely different local variable to
__fish_git_prompt_showupstream and to override this local variable for
bash.showUpstream.

Also update the code that looks at bash.showUpstream to also read
bash.showupstream, because the bash script appears to have a bug where
it looks for bash.showupstream despite documenting bash.showUpstream.
2012-07-26 15:32:27 -07:00
..
_.fish Make gettext function use echo instead of printf to save a fork 2012-04-25 13:37:41 -07:00
__fish_append.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_bind_test1.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_bind_test2.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_commandline_test.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_abook_formats.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_ant_targets.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_complete_atool.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_atool_archive_contents.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_bittorrent.fish Drop use of the N_ no-op for translation descriptions. Instead, tell xgettext that any token following '--description' should be translated. This should greatly speed up completion loading on platforms where fork() is slow. (Hi, OS X) 2007-01-16 11:18:28 +10:00
__fish_complete_cd.fish fix #177 (complete 'cd' only with paths) 2012-06-26 19:17:32 -07:00
__fish_complete_command.fish Fix other usages of \n in sed replacements. 2012-06-17 15:01:04 -07:00
__fish_complete_convert_options.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_diff.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_directories.fish Minor polish like adding missing whitespace, switch to using --argument switch in function definitions to make code more readable, add a few minor saftey checks, etc. 2007-09-24 07:07:30 +10:00
__fish_complete_file_url.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_complete_groups.fish Clean up interactive mode init a bit. Move a few utility functions to their own files. 2007-09-22 06:52:12 +10:00
__fish_complete_list.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_lpr.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_lpr_option.fish Fix other usages of \n in sed replacements. 2012-06-17 15:01:04 -07:00
__fish_complete_ls.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_complete_man.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_complete_mime.fish Remove explicit directory completion from __fish_complete_mime, we only want directory completion as a fallback in order to minimize the number of reasonable completions that are ignored. This issue was reported by Claes Nästén. 2007-04-18 08:56:58 +10:00
__fish_complete_pacman.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_pgrep.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_pids.fish Fix various uses of the GNUism of allowing backslash escapes in the second half of a sed regexp substitution 2006-03-02 21:28:08 +10:00
__fish_complete_ppp_peer.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_proc.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_python.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_setxkbmap.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_ssh.fish Minor polish like adding missing whitespace, switch to using --argument switch in function definitions to make code more readable, add a few minor saftey checks, etc. 2007-09-24 07:07:30 +10:00
__fish_complete_subcommand.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_subcommand_root.fish reviewed merge reqest 14: 2012-01-25 01:14:47 +01:00
__fish_complete_suffix.fish * __fish_complete_subcommand_root now passes arguments to 2011-09-23 12:24:21 +04:00
__fish_complete_svn.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_svn_diff.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_tar.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_complete_tex.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_unrar.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_complete_users.fish Fix user completion so it can handle comments in the passwd file. Patch by Sven Axelsson. 2009-02-02 08:19:21 +10:00
__fish_complete_vi.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_wvdial_peers.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_complete_xsum.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_config_interactive.fish Disable default fish_pager_color_secondary 2012-06-29 18:53:22 -07:00
__fish_contains_opt.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_crux_packages.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_describe_command.fish Remove comments from apropos matching in function for getting description for command from whatis database 2007-01-08 00:20:00 +10:00
__fish_filter_ant_targets.fish Improve ant completions. This patch comes from Steven Knight. (minor tweaks applied) 2008-01-09 08:16:08 +10:00
__fish_filter_mime.fish Minor bug fix in mime-completion-filter - correctly handle when there is no mimetype 2007-08-02 03:39:55 +10:00
__fish_git_prompt.fish Fix showupstream behavior in __fish_git_prompt 2012-07-26 15:32:27 -07:00
__fish_gnu_complete.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_is_first_token.fish Drop unneeded '--' when using set builtin in various places 2006-12-13 06:37:27 +10:00
__fish_is_token_n.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_list_current_token.fish Make sure all keybinding scripts repaint properly 2007-09-22 01:17:23 +10:00
__fish_make_completion_signals.fish * __fish_complete_subcommand_root now passes arguments to 2011-09-23 12:24:21 +04:00
__fish_move_last.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_no_arguments.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_not_contain_opt.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_paginate.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_ports_dirs.fish Completions for ports, a tool for port management in CRUX linux 2007-08-04 21:09:16 +10:00
__fish_print_abook_emails.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_print_addresses.fish Clean up interactive mode init a bit. Move a few utility functions to their own files. 2007-09-22 06:52:12 +10:00
__fish_print_arch_daemons.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_print_debian_services.fish adds completion for Debian's invoke-rc.d command 2009-02-05 05:17:57 +10:00
__fish_print_encodings.fish Create common function for listing available character encodings, make sure it is used in all relevant places. 2007-09-22 07:10:51 +10:00
__fish_print_filesystems.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_print_function_prototypes.fish Add functiopn prototype completions for valgrind --alloc-fn 2006-02-24 23:56:18 +10:00
__fish_print_help.fish Tweaked __fish_print_help to not spew errors 2012-07-06 16:31:06 -07:00
__fish_print_hostnames.fish ish's current hostname completion uses ~/.ssh/known_hosts as one of its sources of information, but ~/.ssh/config may also be useful. Gather all of the 'Host' declarations from ~/.ssh/config and filter out the ones with wildcards. Signed-off-by: James Vega <jamessan@debian.org> 2009-02-03 07:02:42 +10:00
__fish_print_interfaces.fish Clean up interactive mode init a bit. Move a few utility functions to their own files. 2007-09-22 06:52:12 +10:00
__fish_print_lpr_options.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_print_lpr_printers.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_print_lsblk_columns.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_print_make_targets.fish Fix other usages of \n in sed replacements. 2012-06-17 15:01:04 -07:00
__fish_print_mounted.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_print_packages.fish Use eix instead of emerge when possible 2010-12-02 01:33:56 +08:00
__fish_print_svn_rev.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_print_users.fish Clean up interactive mode init a bit. Move a few utility functions to their own files. 2007-09-22 06:52:12 +10:00
__fish_print_xdg_mimeapps.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_print_xdg_mimetypes.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_print_xrandr_modes.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_print_xrandr_outputs.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_print_xwindows.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
__fish_prt_no_subcommand.fish Completions for prt-get and pkgutils, the package management utilities for CRUX (Giorgio Lando) 2007-08-04 06:22:53 +10:00
__fish_prt_packages.fish Completions for prt-get and pkgutils, the package management utilities for CRUX (Giorgio Lando) 2007-08-04 06:22:53 +10:00
__fish_prt_ports.fish Completions for prt-get and pkgutils, the package management utilities for CRUX (Giorgio Lando) 2007-08-04 06:22:53 +10:00
__fish_prt_use_package.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
__fish_prt_use_port.fish Completions for prt-get and pkgutils, the package management utilities for CRUX (Giorgio Lando) 2007-08-04 06:22:53 +10:00
__fish_seen_subcommand_from.fish Drop unneeded '--' when using set builtin in various places 2006-12-13 06:37:27 +10:00
__fish_test_arg.fish Add vim completions, written by Velko Hristov 2007-01-30 10:42:33 +10:00
__fish_use_subcommand.fish Minor cleanups, mostly of code comments 2006-11-11 20:54:52 +10:00
alias.fish alias: Support seds that don't support \n in replacements. 2012-06-17 15:01:04 -07:00
cd.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
contains_seq.fish Squashed commit of the following: 2012-06-15 17:30:33 -07:00
delete-or-exit.fish Made C-d delete characters in multiple lines. 2012-06-07 21:18:02 +05:30
dirh.fish Make dirh, nextd, prevd work on OS X 2012-05-04 18:53:38 -07:00
dirs.fish Make all descriptions for function calls use the implicit translation from the previous patch instead of explicitly using N_ 2007-01-16 11:29:18 +10:00
down-or-search.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
eval.fish eval: (eval false) should return an error status 2010-11-22 19:36:42 +08:00
fish_config.fish Moved some Python scripts into new share/tools/ directory. 2012-03-25 18:38:33 -07:00
fish_default_key_bindings.fish Fix for annoying messages when launching on SnowLeopard 2012-05-30 00:22:45 -07:00
fish_prompt.fish Added a -s option to echo to mean "don't output spaces" 2012-05-19 16:59:56 -07:00
fish_update_completions.fish Don't generate completions if we already have bespoke completions in the data directory 2012-06-18 13:59:34 -07:00
funced.fish Minor refactoring and fixed a bug in history function 2012-07-24 04:35:37 +05:30
funcsave.fish Update funced 2012-07-01 14:20:43 -07:00
grep.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
help.fish Fix for https://github.com/fish-shell/fish-shell/issues/218 2012-07-09 18:46:14 -07:00
history.fish Minor refactoring and fixed a bug in history function 2012-07-24 04:35:37 +05:30
isatty.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
la.fish Make all descriptions for function calls use the implicit translation from the previous patch instead of explicitly using N_ 2007-01-16 11:29:18 +10:00
ll.fish Make all descriptions for function calls use the implicit translation from the previous patch instead of explicitly using N_ 2007-01-16 11:29:18 +10:00
ls.fish Fix color ls detection for BSD and OS X systems. Patch by Sven Axelsson. 2009-02-02 08:24:10 +10:00
math.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
N_.fish Drop use of the N_ no-op for translation descriptions. Instead, tell xgettext that any token following '--description' should be translated. This should greatly speed up completion loading on platforms where fork() is slow. (Hi, OS X) 2007-01-16 11:18:28 +10:00
nextd-or-forward-word.fish Make the directory history keyboard shortcuts repaint the screen. Otherwise, the prompt won't reflect the new CWD. This is needed because of the reduced amounts of repainting done since 1.22.2 2006-12-15 04:23:13 +10:00
nextd.fish Make dirh, nextd, prevd work on OS X 2012-05-04 18:53:38 -07:00
open.fish Make xdg-version of open handle multiple files. 2009-02-17 07:11:03 +10:00
popd.fish Make all descriptions for function calls use the implicit translation from the previous patch instead of explicitly using N_ 2007-01-16 11:29:18 +10:00
prevd-or-backward-word.fish Make the directory history keyboard shortcuts repaint the screen. Otherwise, the prompt won't reflect the new CWD. This is needed because of the reduced amounts of repainting done since 1.22.2 2006-12-15 04:23:13 +10:00
prevd.fish Make dirh, nextd, prevd work on OS X 2012-05-04 18:53:38 -07:00
prompt_pwd.fish Make prompt_pwd make a lot more sense 2012-07-06 14:46:50 -07:00
psub.fish Merged changes from codemonkey and grissiom branches 2010-11-12 02:07:14 +11:00
pushd.fish Make all descriptions for function calls use the implicit translation from the previous patch instead of explicitly using N_ 2007-01-16 11:29:18 +10:00
setenv.fish Make all descriptions for function calls use the implicit translation from the previous patch instead of explicitly using N_ 2007-01-16 11:29:18 +10:00
sgrep.fish call original grep in sgrep 2010-09-19 13:56:30 +08:00
trap.fish Merged changes from codemonkey and grissiom branches 2010-11-12 02:07:14 +11:00
type.fish Merged changes from codemonkey and grissiom branches 2010-11-12 02:07:14 +11:00
umask.fish Merged changes from codemonkey and grissiom branches 2010-11-12 02:07:14 +11:00
up-or-search.fish remove trialing spaces #2 2010-09-18 10:18:26 +08:00
vared.fish Minor tweaks to vared function 2007-02-09 03:01:18 +10:00