aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions
Commit message (Collapse)AuthorAge
* git_prompt: show where rebase is at when stoppedGravatar Brian Gernhardt2013-07-26
| | | | | | | Adds a progress indicator to the rebase messages. (e.g. |REBASE 2/5) based on the git-prompt portion of git.git b71dc3e: "bash-prompt.sh: show where rebase is at when stopped"
* git_prompt: use REVERT_HEADGravatar Brian Gernhardt2013-07-26
| | | | | | | git revert was taught to revert multiple commits, and it stores it branch information in REVERT_HEAD just like the other *_HEAD files. based on git.git 3ee4452: bash: teach __git_ps1 about REVERT_HEAD
* git_prompt: add bash.showUntrackedFiles optionGravatar Brian Gernhardt2013-07-26
| | | | | The option was added in git.git 66cb5d4, so pay attention to it like we do the other bash.* options.
* git_prompt: __fish_git_prompt_showcolorhintsGravatar Brian Gernhardt2013-07-26
| | | | | | | | | | | | Based on GIT_PS1_SHOW_COLORHINTS, it introduces more color by default and also changes the color of the branch name based on if it is a real branch or detached. Based on the following commits from git.git: 9b7e776: show color hints based on state of the git tree 9b3aaf8: Fix up colored git-prompt 76c36c0: coloured git-prompt: paint detached HEAD marker in red
* git_prompt: Add defaults to set_colorGravatar Brian Gernhardt2013-07-26
| | | | | | | This is mostly useful for the next commit that will have different colors default to different values, but it has one immediate change: all __fish_git_prompt_color_* variables now default to __fish_git_prompt_color instead of to nothing, as they used to.
* git_prompt: Expand color/character explinationsGravatar Brian Gernhardt2013-07-26
| | | | | This will be getting more complicated when I add the showcolorhint option from git.git.
* git_prompt: Update documentationGravatar Brian Gernhardt2013-07-26
| | | | | | | | | | | | | | | | | | | * The original __git_ps1 function has split from the rest of git-completion as of git.git af31a45 * Use the description for GIT_PS1_DESCRIBE_STYLE (added in git.git 50b03b0) for __fish_git_prompt_describe_style * Update the description of __fish_git_prompt_showupstream to include the meaning of '=' based on git.git f9db192: "Improve the description of GIT_PS1_SHOWUPSTREAM" * Note that the PROMPT_COMMAND versions of the command with extra arguments don't work, in case someone used to the bash version is looking for it. * Note that I am updating the script so Kevin Ballard doesn't get blamed for anything I break.
* git_prompt: Add branch information for rebaseGravatar Brian Gernhardt2013-07-26
|
* git_prompt: Merge operation, branch, and bare helpersGravatar Brian Gernhardt2013-07-26
| | | | | | | | | | | | | Operation and branch detection are merged together in the original because branch information may come from different places depending on the operation. Merging the bare helper in helps avoid testing for the working directory and bare status twice, both of which requires forking a new process. Also helps the code match the original more, which will make adding new features easier.
* git_prompt: Reorder show_upstream to match originalGravatar Brian Gernhardt2013-07-26
| | | | | | This makes it easier to see if there are any changes. Also it puts all of the extra functionality together instead of mixed in with everything else.
* 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.
* Fixed ftp completionsGravatar Siteshwar Vashisht2013-07-18
| | | | | | | | | | | | | | | | | | | | | | | | | Merged pull request at https://github.com/fish-shell/fish-shell/pull/919 Squashed commit of the following: commit c0662a9d4da12ba49ffe1dddc918533f8a52b91f Author: Siteshwar Vashisht <siteshwar@gmail.com> Date: Thu Jul 18 21:23:42 2013 +0530 Added missing quote in ftp completions commit 9ef408d0390f13be3adc02be62daae3e0f114843 Author: Konrad Borowski <glitchmr@myopera.com> Date: Thu Jul 18 15:33:57 2013 +0200 Make punctuation consistent properly. Fixes #918. commit ea26da0f8284fa39dc143e3d2ad088403fa6b2ed Author: Konrad Borowski <glitchmr@myopera.com> Date: Thu Jul 18 15:29:02 2013 +0200 Revert "make punctuation consistent" This reverts commit 993c02857948b45e5d17cc2696f347c73b3a450d.
* Less code is better, __fish_git_prompt_validate_chars refactoringGravatar Mariusz Smykuła2013-06-18
|
* Renaming, cleanupGravatar Mariusz Smykuła2013-06-18
|
* Support for defining color with bold/brighter color setGravatar Mariusz Smykuła2013-06-18
|
* Less code is better, __fish_git_prompt_validate_colors refactorGravatar Mariusz Smykuła2013-06-18
|
* Use tabs, sample promptGravatar Mariusz Smykuła2013-06-18
|
* Fixes, new method added to promptGravatar Mariusz Smykuła2013-06-17
|
* Added informative status methodGravatar Mariusz Smykuła2013-06-17
|
* Informative version of __fish_git_prompt_show_upstreamGravatar Mariusz Smykuła2013-06-17
|
* Fix variable nameGravatar Mariusz Smykuła2013-06-17
|
* Portmaster completionsGravatar James French2013-06-17
| | | | | | | * Added FreeBSD's pkg to __fish_print_packages * Portmaster completes on installed packages and ports * Options list as per fish_generate_completions, needs to be tidied up further but will suffice for now
* git prompt: Fix hang on detached head.Gravatar Brian Gernhardt2013-06-12
| | | | | | $git_dir was never set in __fish_git_prompt_current_branch, but used in the case of a detached HEAD. This caused `cut -c1-7 $git_dir/HEAD` to expand to `cut -c1-7` which then waited for input.
* Make funced properly handle an invalid number of argumentsGravatar ridiculousfish2013-06-08
| | | | Fixes https://github.com/fish-shell/fish-shell/issues/780
* git prompt: replace question with explanationGravatar Brian Gernhardt2013-06-03
| | | | | | | The code in question displays GIT_DIR! if the user is inside the .git directory of a repository that has a working directory. Several git commands won't work in that situation, so it's useful to warn the user.
* git prompt: actually show staged tokenGravatar Brian Gernhardt2013-06-03
|
* git prompt: reindentGravatar Brian Gernhardt2013-06-03
| | | | | | Normally I wouldn't bother, but it was difficult to follow the nested if statements. Most of the file used tabs, so replaced all leading spaces with the appropriate amount of tabs.
* Add some const, fix spacesGravatar ridiculousfish2013-06-02
|
* transpose-wordsGravatar Christian Rishøj2013-06-02
|
* Squashed commit of the following:Gravatar ridiculousfish2013-06-01
| | | | | | | | | | | | | | | | | | | | | commit 5a577d970a293afe320b6c3280c10c2bd8a1ff50 Merge: 908b075 96941b3 Author: ridiculousfish <corydoras@ridiculousfish.com> Date: Sat Jun 1 22:59:16 2013 -0700 Merge branch 'dotdir-two-chars' of git://github.com/GlitchMr/fish-shell into GlitchMr-dotdir-two-chars commit 96941b3a92e5d7e9dd230e4797ee71285700a41f Author: Konrad Borowski <glitchmr@myopera.com> Date: Sat May 25 09:55:43 2013 +0200 Support BSD sed commit 60652c2bd2d1bbce26c90a010913f0f0d8e9365f Author: Konrad Borowski <glitchmr@myopera.com> Date: Sun May 19 10:58:40 2013 +0200 Show first two characters for dotdirs. Fixes #754.
* Indentation and quote cleanup of help.fishGravatar ridiculousfish2013-05-25
|
* help function: tidy up messages, remove the 'difference' optionGravatar David Adam (zanchey)2013-05-25
| | | | Fixes #73
* help command: only use $BROWSER if it is a valid commandGravatar David Adam (zanchey)2013-05-25
| | | | (plus add Google Chrome and Chromium to graphical_browsers and a spelling fix)
* command and binding for transpose-charsGravatar Christian Rishøj2013-05-24
|
* Squashed commit of the following:Gravatar ridiculousfish2013-05-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 4a9595845111bcc8d45419241f8f49bc3e8b3445 Author: Harm Aarts <harmaarts@gmail.com> Date: Fri May 24 10:45:58 2013 +0200 use the new functions commit 1c934ebbe65a82e92079952b15f31d3a92bc5e8f Author: Harm Aarts <harmaarts@gmail.com> Date: Fri May 24 10:45:21 2013 +0200 moves formatting code to the bottom in order to get it out of the way of all the colour handling commit c62f827143c30f6810026c7e4a3d8b77178cd9a4 Author: Harm Aarts <harmaarts@gmail.com> Date: Fri May 24 10:44:12 2013 +0200 adds helper returning whether or not there are staged files commit 624e47cb85a7579bf284a6a7f0c9165dfa38b0ce Author: Harm Aarts <harmaarts@gmail.com> Date: Fri May 24 10:43:41 2013 +0200 adds helper returning whether or not the current branch is dirty commit efc270da7b0998f564a7d2ae4ea3013ed6910e58 Author: Harm Aarts <harmaarts@gmail.com> Date: Fri May 24 10:42:48 2013 +0200 adds helper returning whether or not a repo is bare commit 0da668316cedb8e3fa166977be82c917ef67ad86 Author: Harm Aarts <harmaarts@gmail.com> Date: Fri May 24 10:41:55 2013 +0200 adds helper returning current branch commit 15cbcedc77199aea1868faee5d178d9547a4d541 Author: Harm Aarts <harmaarts@gmail.com> Date: Fri May 24 10:41:10 2013 +0200 adds helper returning current operation commit c3352d3e9e60bf94fd4bf412ad85d62bba4cbff8 Author: Harm Aarts <harmaarts@gmail.com> Date: Fri May 24 10:40:20 2013 +0200 adds helper returning the git dir commit f346e52b7814ebf1eed55f006c3bedc8ece38e3b Author: Harm Aarts <harmaarts@gmail.com> Date: Mon May 20 18:52:19 2013 +0200 use the fish_git_prompt_char_* variables
* Add completions for cabal; closes #567Gravatar Dag Odenhall2013-05-04
|
* Make trap sort of work on OS XGravatar ridiculousfish2013-04-28
| | | | https://github.com/fish-shell/fish-shell/issues/607
* Fix __fish_filter_mime to not pass 0 to seqGravatar ridiculousfish2013-04-28
|
* Teach fish about rxvt's special key bindingsGravatar ridiculousfish2013-04-28
| | | | https://github.com/fish-shell/fish-shell/issues/657
* make punctuation consistentGravatar Greg Dietsche2013-04-07
| | | | Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
* ftp: add support for ftp and pftpGravatar Greg Dietsche2013-04-07
| | | | Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
* grep: add support for egrep, fgrep, rgrepGravatar Greg Dietsche2013-04-07
| | | | Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
* Some spaces to tabs in __fish_print_hostnamesGravatar ridiculousfish2013-04-03
|
* Ignore hashed host names in ssh/known_hostsGravatar Greg Dietsche2013-04-03
| | | | | | | | Valid DNS names cannot have a | character and hashed ssh hosts always begin with the | character. Therefore we ignore lines that begin with |. Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
* the host keyword in ssh/.config is case insensitiveGravatar Greg Dietsche2013-04-03
| | | | Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
* Fix a few more spelling / grammar issues in functions and completionsGravatar ridiculousfish2013-04-01
|
* Squashed commit of the following:Gravatar ridiculousfish2013-04-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 1bbde16b17f04903340206bada9935ea64f785ba Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:12:22 2013 -0500 fix spelling in xterm.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 392dd59da76e6a1293db79733e1975dbb9ef4032 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:10:08 2013 -0500 fix spelling in type.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit f82026828e4c08bdf355176f86489783c57efc80 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:09:34 2013 -0500 fix spelling in top.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 196f2ec59c0904eb13159d1063e2e6c6edbd50a8 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:08:16 2013 -0500 fix spelling in scrot.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 8400d97dce93afe48612c66eb8ddc2bd06b40968 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:07:48 2013 -0500 fix spelling in scp.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit b68bb3f36915520d2c271e48e2d5356e087e9fcf Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:04:30 2013 -0500 fix spelling in mount.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 97000184afde10ca26b6dda8597baa0593bb4e09 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:01:46 2013 -0500 fix spelling in hg.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 87ca4e71ce57842ab98e4d6b6f9274aafd9713a5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:00:37 2013 -0500 fix spelling in gzip.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 17246a21ad3df39660e6b4c86bf8c6a2239b416b Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 01:00:07 2013 -0500 fix spelling in gunzip.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 0f618600508695ed5a93110568343f8a783db8c5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:59:37 2013 -0500 fix spelling in grep.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit bacf6a62041d13f1766e90748cfc2c76e1b04b98 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:58:16 2013 -0500 fix spelling in git.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit f8f6a1914a8f2f60a14dac532f1d63dd8269f676 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:56:45 2013 -0500 fix spelling in fuser.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit dcdfd1552dfd360d1ce808706bc401d52cce22ce Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:54:58 2013 -0500 fix spelling in effectv.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 7b4388364f546b81f0557c500bb6a5207931c3be Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:53:45 2013 -0500 fix spelling in du.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 0450070e98adae2ebe19806f4fb74386a50de003 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:52:55 2013 -0500 fix spelling in df.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 49ae24ae0dbd06c72e6c994f1ea4ca9b385fdda5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:49:00 2013 -0500 fix spelling in cut.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 4eccc923f389e2fc0c498fc63e4bbeeccc177e9a Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:47:21 2013 -0500 fix spelling in compare.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 8c0cfb91c596ef7a1583877c8f38fab7e867cff2 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:46:46 2013 -0500 fix spelling in chown.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 4518b06c3fc8c565038ccbeeb0d2f8aea73e1ee0 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:46:08 2013 -0500 fix spelling in chgrp.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit a0a4fb3dc271c469482e87a0f9efab4016596f82 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:43:04 2013 -0500 fix spelling in apt-setup.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 740e75e5316e73fb03c00bd9b482786d1f387cc5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:42:25 2013 -0500 fix spelling in apt-rdepends.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 7a2727bcb96e58a023d0f8ab807f839e76555375 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:27:27 2013 -0500 fix spelling in fish_complete_pacman.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 0e28ff4c1c90bdbf1e1b780d0ab3c2ba04b3a463 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:26:17 2013 -0500 fix spelling in fish_complete_pgrep.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 1ca9fad713c460debcd851dfcffa135f3b579561 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:24:13 2013 -0500 fix spelling in trap.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit deb0c2129d50d627d720cbd549cf8aadc3113243 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:19:00 2013 -0500 fix spelling in fish_not_contain_opt.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 8a40bd08b37d5c80041b7beb58fb82d9b0592b5d Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:18:16 2013 -0500 fix spelling in fish_make_completion.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit f1c48dc8236a8eb5ba0e45e985e8dd7eadfb88e5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:17:09 2013 -0500 fix spelling in fish_gnu_complete.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit b6813883d9355f8e15917769d46b58cc8fab840d Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:16:33 2013 -0500 fix spelling in fish_git_prompt.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 97e3e74ddb743061a8e4349bf7895cf98cf9d9b2 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:13:11 2013 -0500 fix spelling in fish_complete_vi.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 7c31d5fec8f855fbc3496be7200915a1d2dc4d46 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:10:47 2013 -0500 fix spelling of in fish_complete_tex.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 3f06bdb91942c4d0e686d1bb8b5eff1983a91304 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:06:45 2013 -0500 fix spelling in fish_complete_list.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit 5bfd9ef40547b744c9bbfb4cc6f8a7d880d8f3d6 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Mon Apr 1 00:03:14 2013 -0500 fix spelling in fish_complete_atool.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu> commit b84a43ff0bad5e206a591891b6c7ff9028e14eb5 Author: Greg Dietsche <Gregory.Dietsche@cuw.edu> Date: Sun Mar 31 23:40:28 2013 -0500 fix spelling of protocol in fish_complete_ssh.fish Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
* Make __fish_filter_mime not spew if there's no resultsGravatar ridiculousfish2013-03-28
| | | | https://github.com/fish-shell/fish-shell/issues/628
* Minor fix to order of arguments in error-message.Gravatar Kenneth Vestergaard2013-03-09
|
* recreate yum-cache file every six hours.Gravatar aliva2013-03-02
|