fish-shell/share/functions
Mahmoud Al-Qudsi 225f748f79 Add __fish_parent_directories helper function for completions
Can be used to retrieve a list of parent paths, useful for searching
ancestors recursively via their absolute paths. Paths are returned from
deepest to shallowest, starting from the path passed in. Paths are not
validated for performance reasons. (Usually the input to
__fish_parent_directories would be (pwd) or (dir $file).)
2018-03-05 08:25:25 -06:00
..
_.fish Use command -sq instead of redirection 2017-02-18 22:16:55 +01:00
__fish_append.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_bind_test1.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
__fish_bind_test2.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
__fish_cancel_commandline.fish check if $fish_color_cancel is set before using it 2017-07-04 13:56:35 -07:00
__fish_commandline_is_singlequoted.fish Auto-escape pastes inside single-quotes 2017-03-16 16:08:13 +01:00
__fish_commandline_test.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_abook_formats.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_ant_targets.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_atool_archive_contents.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_bittorrent.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_blockdevice.fish Split off __fish_complete_blockdevice from mount.fish. 2016-05-27 14:56:47 -07:00
__fish_complete_cd.fish Revert "Fix cd completions if a directory exists in $CDPATH and $PWD" 2017-10-16 19:33:38 +02:00
__fish_complete_command.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_convert_options.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_directories.fish fix three explicitly translated messages 2017-06-02 20:40:58 -07:00
__fish_complete_file_url.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_ftp.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_groups.fish Use command -sq instead of redirection 2017-02-18 22:16:55 +01:00
__fish_complete_job_pids.fish Add a function to complete job PIDs. 2015-11-27 16:07:16 -08:00
__fish_complete_list.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_lpr.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_lpr_option.fish remove some uses of $IFS 2017-07-24 20:45:43 -07:00
__fish_complete_lsusb.fish misc improvements to scripts 2016-12-21 13:46:43 +01:00
__fish_complete_man.fish cleanup __fish_complete_man.fish 2017-03-18 21:55:02 -07:00
__fish_complete_mount_opts.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
__fish_complete_path.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_pgrep.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_pids.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_ppp_peer.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_proc.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
__fish_complete_setxkbmap.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_ssh.fish style fixes to previous commit 2017-02-01 22:49:40 -08:00
__fish_complete_subcommand.fish Revert "Switch to bare vars in our math invocations" 2017-09-09 23:35:47 -07:00
__fish_complete_subcommand_root.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
__fish_complete_suffix.fish Strip quotes in __fish_complete_suffix 2018-01-01 13:18:40 +01:00
__fish_complete_svn_diff.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_tar.fish Delete trailing spaces 2017-01-15 14:57:21 -08:00
__fish_complete_unrar.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_user_at_hosts.fish a make style-all cleanup 2017-07-18 22:40:25 -07:00
__fish_complete_users.fish Fixed __fish_complete_users to better format GECOS 2017-07-11 17:00:08 +02:00
__fish_complete_wvdial_peers.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_complete_zfs_mountpoint_properties.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_complete_zfs_pools.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_complete_zfs_ro_properties.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_complete_zfs_rw_properties.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_complete_zfs_write_once_properties.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_config_interactive.fish Use the new fish_exit event 2018-02-19 20:21:02 +01:00
__fish_contains_opt.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
__fish_crux_packages.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_cursor_1337.fish fish vi mode cursor shape on iTerm2 2016-12-02 19:49:15 -08:00
__fish_cursor_konsole.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_cursor_xterm.fish Revert "Switch to bare vars in our math invocations" 2017-09-09 23:35:47 -07:00
__fish_describe_command.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_filter_ant_targets.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_git_prompt.fish feat(share:git-prompt): be able to truncate the branch name with a defined max length 2017-11-13 10:57:42 +01:00
__fish_gnu_complete.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_hg_prompt.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
__fish_is_first_token.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_is_git_repository.fish Add completion for climate 2017-02-05 19:22:35 -08:00
__fish_is_token_n.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_is_zfs_feature_enabled.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_list_current_token.fish make alt-L output respect multi-line prompts 2016-03-18 15:53:29 -07:00
__fish_make_completion_signals.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
__fish_man_page.fish Add support for subcommands in __fish_man_page 2016-12-27 16:03:21 -08:00
__fish_move_last.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_no_arguments.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_not_contain_opt.fish fix typo in error message 2017-06-09 12:12:36 -07:00
__fish_number_of_cmd_args_wo_opts.fish Add eselect, rc-update and rc-service completions. (These are utilities used by Gentoo Linux) 2013-11-27 18:36:05 +08:00
__fish_paginate.fish Paginating last command 2017-11-01 07:35:26 +08:00
__fish_parent_directories.fish Add __fish_parent_directories helper function for completions 2018-03-05 08:25:25 -06:00
__fish_ports_dirs.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_abook_emails.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_addresses.fish Use command -sq instead of redirection 2017-02-18 22:16:55 +01:00
__fish_print_arch_daemons.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_cmd_args.fish Add eselect, rc-update and rc-service completions. (These are utilities used by Gentoo Linux) 2013-11-27 18:36:05 +08:00
__fish_print_cmd_args_without_options.fish Add eselect, rc-update and rc-service completions. (These are utilities used by Gentoo Linux) 2013-11-27 18:36:05 +08:00
__fish_print_commands.fish Allow compressed man pages in help 2016-06-10 14:13:15 +02:00
__fish_print_debian_apache_confs.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_debian_apache_mods.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_debian_apache_sites.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_debian_services.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_encodings.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_filesystems.fish add ffs to known filesystems 2017-12-12 19:18:47 +01:00
__fish_print_function_prototypes.fish requested changes 2016-12-21 18:44:34 +01:00
__fish_print_groups.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_print_help.fish Revert "Switch to bare vars in our math invocations" 2017-09-09 23:35:47 -07:00
__fish_print_hostnames.fish Skip unusable paths in __fish_print_hostnames 2017-12-13 13:18:25 +01:00
__fish_print_interfaces.fish parse *BSD interface names 2017-12-12 19:18:53 +01:00
__fish_print_lpr_options.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_lpr_printers.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_lsblk_columns.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_make_targets.fish improve make target completion 2016-12-21 19:04:15 -08:00
__fish_print_modules.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_mounted.fish a step to remove __fish_sgrep per issue #2450 2017-04-15 20:04:43 -07:00
__fish_print_ninja_targets.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_ninja_tools.fish Add completions for ninja build system 2016-10-04 12:32:28 +02:00
__fish_print_packages.fish add completion for MacPorts 2018-02-24 23:32:25 +08:00
__fish_print_pacman_repos.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_service_names.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_svn_rev.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_users.fish refactor the __*_users functions 2017-04-23 20:08:40 -07:00
__fish_print_VBox_vms.fish Add __fish_print_VBox_vms function 2016-12-21 14:51:48 +01:00
__fish_print_xdg_applications_directories.fish Update xdg-mime helper 2017-08-17 10:50:06 -07:00
__fish_print_xdg_desktop_file_ids.fish Update xdg-mime helper 2017-08-17 10:50:06 -07:00
__fish_print_xdg_mimetypes.fish Fix typo in xdg-mime completion functions 2017-08-17 10:54:05 -07:00
__fish_print_xrandr_modes.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_xrandr_outputs.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_xwindows.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_print_zfs_bookmarks.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_print_zfs_filesystems.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_print_zfs_snapshots.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_print_zfs_volumes.fish Added completions/translations for zfs and zpool 2017-12-21 16:39:06 +01:00
__fish_prt_no_subcommand.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_prt_packages.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_prt_ports.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_prt_use_package.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_prt_use_port.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_pwd.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_seen_subcommand_from.fish Drop unneeded '--' when using set builtin in various places 2006-12-13 06:37:27 +10:00
__fish_set_locale.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
__fish_sgrep.fish mark __fish_sgrep as deprecated 2017-04-15 21:51:33 -07:00
__fish_shared_key_bindings.fish Bind pager-toggle-search to control-s by default. 2018-01-30 09:58:08 -08:00
__fish_svn_prompt.fish Revert "Switch to bare vars in our math invocations" 2017-09-09 23:35:47 -07:00
__fish_systemctl_services.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemd_machine_images.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_systemd_machines.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_test_arg.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_toggle_comment_commandline.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_use_subcommand.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__fish_vcs_prompt.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
__terlar_git_prompt.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
_fish_systemctl.fish Rewrite systemctl completion with argparse 2017-09-29 20:07:18 +02:00
_validate_int.fish add ability for argparse to validate args 2017-07-18 14:42:50 -07:00
abbr.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
abbr_old.fish rewrite abbr function 2017-08-03 14:35:06 -07:00
alias.fish alias: Fix string args being parsed as options 2018-02-28 11:17:00 +01:00
cd.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
cdh.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
contains_seq.fish Revert "Switch to bare vars in our math invocations" 2017-09-09 23:35:47 -07:00
delete-or-exit.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
dirh.fish convert dirh to use argparse 2017-07-13 11:50:57 -07:00
dirs.fish update dirs to use argparse 2017-07-13 11:53:29 -07:00
down-or-search.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
edit_command_buffer.fish disable/enable bracketed paste by edit cmd buf 2017-06-05 11:32:06 -07:00
eval.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
export.fish Fix export returning 1 on success 2017-10-01 01:11:17 -07:00
fish_breakpoint_prompt.fish Revert "Switch to bare vars in our math invocations" 2017-09-09 23:35:47 -07:00
fish_clipboard_copy.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
fish_clipboard_paste.fish fish_clipboard_paste: Turn \r into \n 2017-04-23 13:40:40 +02:00
fish_config.fish fish_config: Pick a python 2017-04-21 13:45:49 +02:00
fish_default_key_bindings.fish Silence bind errors in default key bindings 2017-10-03 11:20:17 +02:00
fish_default_mode_prompt.fish Rename replace-one to replace_one 2017-04-17 21:10:23 -07:00
fish_fallback_prompt.fish Quote $USER when used with switch or test 2017-07-20 19:45:32 +02:00
fish_hybrid_key_bindings.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
fish_indent.fish Rename $FISH_VERSION back to the original $version. 2017-10-14 08:33:02 -07:00
fish_key_reader.fish Rename $FISH_VERSION back to the original $version. 2017-10-14 08:33:02 -07:00
fish_md5.fish Gradle-completions for gradle tasks (#3972) 2017-05-13 13:28:32 +02:00
fish_mode_prompt.fish Added default mode prompt function (#3727) 2017-01-12 16:07:41 +01:00
fish_opt.fish Fix fish_opt --help showing nextd manpage. 2017-11-14 01:56:58 -08:00
fish_prompt.fish Quote $USER when used with switch or test 2017-07-20 19:45:32 +02:00
fish_update_completions.fish fish_update_completions: error when python not found (#4454) 2017-10-12 06:00:50 -07:00
fish_vi_cursor.fish Fix error when using tmux with vi mode 2017-02-28 19:05:05 +01:00
fish_vi_key_bindings.fish add few bindings for vi mode 2018-01-26 18:32:03 +01:00
fish_vi_mode.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
funced.fish Add ability to autosave functions at the end of funced 2018-01-18 18:03:52 +01:00
funcsave.fish fix bug introduced by commit 86af63cd3 2017-07-25 14:03:40 -07:00
grep.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
help.fish Fix #4480 by using a temporary file with a redirect to the correct location. 2018-01-16 18:38:20 +01:00
history.fish Drop deprecated history search --with-time flag (#4403) 2017-09-15 19:28:44 -07:00
hostname.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
isatty.fish have argparse report the proper command name 2017-07-12 22:38:32 -07:00
la.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
ll.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
ls.fish Support colored ls output on Solaris 11 2017-09-26 08:55:28 -05:00
man.fish harden man against undef vars 2017-07-04 13:56:35 -07:00
N_.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
nextd-or-forward-word.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
nextd.fish convert nextd to use argparse 2017-07-13 11:30:48 -07:00
open.fish update open to use argparse 2017-07-13 14:12:51 -07:00
popd.fish Revert "convert popd and pushd to use argparse" 2017-09-14 12:36:37 +08:00
prevd-or-backward-word.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
prevd.fish convert nextd to use argparse 2017-07-13 11:30:48 -07:00
prompt_hostname.fish change name of the function 2016-10-23 15:02:14 -07:00
prompt_pwd.fish update prompt_pwd to use argparse 2017-07-13 14:12:51 -07:00
psub.fish return to psub --file being the default 2017-07-17 14:33:51 -07:00
pushd.fish Revert "convert popd and pushd to use argparse" 2017-09-14 12:36:37 +08:00
realpath.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
seq.fish seq fallback speedup 2017-09-22 00:30:26 -07:00
setenv.fish fix setenv and add unit tests 2017-04-05 15:31:13 -07:00
string.fish use the new set -a and set -p in our scripts 2017-08-04 18:02:24 -07:00
suspend.fish Fixed suspend --force conditions 2018-01-19 11:23:55 +01:00
trap.fish Use the new fish_exit event 2018-02-19 20:21:02 +01:00
type.fish update type to use argparse 2017-07-13 15:19:02 -07:00
umask.fish Revert "Switch to bare vars in our math invocations" 2017-09-09 23:35:47 -07:00
up-or-search.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00
vared.fish reformat all fish scripts 2016-11-27 21:27:22 -08:00