[Fish-users] gcloud completions

2024-03-20 Thread Peter Flood
Hi all, Does anyone know a way to get gcloud (& gsutil etc etc) completions working in fish? There are bash and zsh completions, any way to convert them? Thanks ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforg

Re: [Fish-users] Git checkout completion doesn't complete filenames

2020-02-28 Thread Peter Flood
to something that is valid for git, otherwise it's a bug. On the rare occasion I need plain file completions I temporarily insert a `: ` at the beginning of the command. On Mon, Feb 24, 2020 at 12:43 PM Peter Flood mailto:i...@whywouldwe.com>> wrote: Hi

[Fish-users] Git checkout completion doesn't complete filenames

2020-02-24 Thread Peter Flood
Hi I upgraded to fish 3.1.0 last week (from 2.x, don't recall which) and have just noticed that the `git checkout` completions don't complete filenames/paths any more. This is really frustrating to me, it seems to only want to complete valid git hashes/tags/branch names. I often `git checkout

Re: [Fish-users] fish_history problem

2017-09-12 Thread Peter Flood
Ahh, didn't know about `history delete`, thanks. On 12/09/2017 18:28, Kurtis Rader wrote: On Tue, Sep 12, 2017 at 6:54 AM, Peter Flood <mailto:i...@whywouldwe.com>> wrote: Is `~/.config/fish/fish_history` still the place where command history is stored in v2.6? I ask

Re: [Fish-users] fish_history problem

2017-09-12 Thread Peter Flood
been set) On Tue, Sep 12, 2017 at 9:54 AM, Peter Flood <mailto:i...@whywouldwe.com>> wrote: Is `~/.config/fish/fish_history` still the place where command history is stored in v2.6? I ask because I use fish every day yet that file has a modified timestamp in March and the lat

[Fish-users] fish_history problem

2017-09-12 Thread Peter Flood
Is `~/.config/fish/fish_history` still the place where command history is stored in v2.6? I ask because I use fish every day yet that file has a modified timestamp in March and the latest entry has a timestamp of 19/1/2017. I want to remove some typo commands that keep coming up in my history.

Re: [Fish-users] History search behaviour

2015-12-11 Thread Peter Flood
Not sure if this will help or not. If you type 'vim' the command you use most that start with vim is offered (greyed out), you can press ctrl+f to complete it and enter to run it, if instead you press up or ctrl+p the most recent command starting with 'vim' is completed, pressing up/ctrl+p agai

Re: [Fish-users] start another terminal with the current directory

2013-09-20 Thread Peter Flood
FYI, in Terminal on a mac pressing cmd + t opens a new tab with the same directory (in fish at least). On 20/09/2013 20:08, Wai Yan Pong wrote: Thanks for the clarification. My ultimate goal is to customize config.h for dwm so that Alt-shift-return will spawn a new terminal in the current di

Re: [Fish-users] Short prompt

2013-07-22 Thread Peter Flood
How about a fish_short_prompt function in addition to fish_prompt, then users could choose what to display (I'm assuming they can't at the moment). On 22/07/2013 04:36, David Adam wrote: > On Sun, 21 Jul 2013, Josh Cheek wrote: >> When my terminal is too narrow to display my full prompt, fish s

[Fish-users] previous command completion bug (ubuntu)

2013-06-11 Thread Peter Flood
I've just noticed some odd behaviour around previous command completion on Ubuntu 12.04 with the apt-get fish package (2.0.0). When the greyed our part of the command makes the command longer that the available space the greyed out part shows '...', and when the typed part of the command is too

Re: [Fish-users] Virtualenvwrapper for fish

2013-06-11 Thread Peter Flood
Hi Dario It looks good, if it was around when I started using fish I definitely would have used it. When I moved to fish I made a custom workon script but got bored of updating it every time something changed or I had to customise it in a different environment. Eventually I gave up and now jus

Re: [Fish-users] git status coloured output

2013-04-12 Thread Peter Flood
ou should use something like > > [color "status"] > added = yellow > changed = green > untracked = cyan > > Ilia > > On Apr 12, 2013, at 2:06 PM, Peter Flood wrote: > >> On my machine (osx) I get coloured output when I run `git status`

[Fish-users] git status coloured output

2013-04-12 Thread Peter Flood
On my machine (osx) I get coloured output when I run `git status` (local changes are red and staged changes are green), when I ssh into ubuntu machines I get a coloured prompt and coloured output when I run `ls -la` but not for `git status`. Anyone know how to fix this? Thanks --

Re: [Fish-users] Completion of auto-suggest

2012-12-12 Thread Peter Flood
What's M-F? Thanks On 12/12/2012 08:33, Maxim Gonchar wrote: > Hi, > > ^F to complete the whole line, M-F to complete the line token by token. > > Maxim > > On Wed, 12 Dec 2012 11:21:07 +0400, Christian Rishøj > wrote: > >> Please excuse me if this has been documented somewhere – I have not been

Re: [Fish-users] autocomplete "alias" from another command's autocomplete

2012-11-30 Thread Peter Flood
Git has that functionality built in, see https://git.wiki.kernel.org/index.php/Aliases git config --global alias.ci commit On 30/11/2012 16:09, Jakub Arnold wrote: Say that I have defined a simpe "alias" as a function function gco git checkout $argv end and I want to provide th

Re: [Fish-users] problem with virtualenv

2012-09-21 Thread Peter Flood
I had exactly that problem until I updated virtualenv to 1.8.2 (I think I was on 1.7.? before), now all is good. I assume the activate.fish script has been updated in the latest version (you'll have to delete and recreate your virtualenvs to use the new script, use a requirements file to do so)

[Fish-users] . without any args

2012-08-16 Thread Peter Flood
Sometimes I accidentally run . (source) without any args (by pressing enter too soon, before up, not after), when this happens I can't get my prompt back with either ctrl+c or ctrl+z and end up closing the tab. Is there a way to get the prompt back without ending the session? Thx -

Re: [Fish-users] Use functions with (e.g.) xargs

2012-07-28 Thread Peter Flood
Maybe you need to pass parameters specifically, this works for me and is not fish specific, also works in bash ls -1 | xargs -I varname echo varname On 24/07/2012 13:44, Eloy Durán wrote: > Sorry for not being clear enough, in this example `clean_file` is my function. > > On Jul 24, 2012

[Fish-users] problem using fish for user www-data

2012-07-04 Thread Peter Flood
When I type `fish` as the user www-data nothing seems to happen. I can't ctrl-c, so I have to open another terminal session and kill -9 {pid}. I can get into bash and sh I can use fish as user root fish is listed in /etc/shells I'm using the fishfish beta v2 - SOLVED Af

Re: [Fish-users] VIM Colour Problems

2012-06-07 Thread Peter Flood
Have you tried adding `colorscheme BusyBee` to your ~/.vimrc (and making sure you don't have something else set)? On 07/06/2012 12:46, Jan Kroeze wrote: Hi there! I'm having a problem with fish and VIM. When I open a file in VIM, sometimes no colour scheme is loaded. Pressing any key will

Re: [Fish-users] scp remote path completion

2012-06-06 Thread Peter Flood
This is just what I've been looking for since I read that zsh has this functionality. Many thanks On 05/06/2012 22:11, pants wrote: > There doesn't seem to be one of these available in the archives, and > it's the thing I've missed most since moving from zsh, so I figured I'd > really get fish

Re: [Fish-users] Fish-users Digest, Vol 65, Issue 6

2012-06-01 Thread Peter Flood
On 01/06/2012 22:54, Axel Liljencrantz wrote: I am dealing with a somewhat large and C++ code base at work right now, written by extremely clever people who wanted to try out some extremely clever ideas. Exceedingly fed up with C++ right now; a conversation about the merits of C++ would not be

[Fish-users] Completions

2012-05-31 Thread Peter Flood
I want to edit some completions for the new beta but I can't find where to do so. I moved all the completions in ~/.config/fish/completions and /usr/local/share/fish/completions yet I'm still getting completions in git, where else should I be looking? Thanks ---

Re: [Fish-users] fish_fish

2012-05-30 Thread Peter Flood
ombined with a CDPATH that includes ~ > > But if it is restricted to paths where there can be no confusion, like '..', > then it would be OK. What would you think about that? > > _fish > > On May 30, 2012, at 5:25 AM, Peter Flood wrote: > >> This is fantastic n

Re: [Fish-users] fish_fish

2012-05-30 Thread Peter Flood
Aha, I've just realised what implicit cd *actually is* and don't ever use it apart from .. On 30/05/2012 21:23, Peter Flood wrote: > Hi Ridiculous > > I have .. up to . (I think) but also have CDPATH as . as I find > the behaviour of odd when ~ is in CDPATH so I

Re: [Fish-users] Announcing Open Beta for our fancy new fish fork

2012-05-30 Thread Peter Flood
For anyone who hasn't yet, run `fish_config` on a system with a web browser. Nice. The osx installer seems to have wiped out my previous version of fish that was in /usr/local/bin/fish, would be good if it could just move it aside if it exists already (or maybe it did and I just can't find it)

Re: [Fish-users] fish_fish

2012-05-30 Thread Peter Flood
I created a .. function in ~/.config/fish/functions (I already have ..., etc) and it works. On 30/05/2012 13:16, Maxim Gonchar wrote: > 2) I see that I can not now execute directories. I.e. I can not use '..' > as command to go to the upper directory. > Of course I can catch the event to han

Re: [Fish-users] fish_fish

2012-05-30 Thread Peter Flood
This is fantastic news, well done. Was just about to install it when I read this "I can not use '..' as command to go to the upper directory." "It ignores my prompt." "It seems that it ignores my functions" Once these are fixed I'll give it a go and report back. On 30/05/2012 13

Re: [Fish-users] errors when doing cd -

2012-02-05 Thread Peter Flood
I've just noticed you attached your version of seq to the message, I tried it and now don't get the error any more. Many thanks On 05/02/2012 23:14, Peter Flood wrote: The seq I have is the one that came with my machine, here's the output, is this what you'd expect?

Re: [Fish-users] errors when doing cd -

2012-02-05 Thread Peter Flood
was/in/the/filesystem Make sure seq is a fish script text executable -- perhaps you accidentally installed some other broken version of seq? -Dave On Fri, Feb 3, 2012 at 8:50 AM, Peter Flood <mailto:i...@whywouldwe.com>> wrote: I'm using the latest gitorious master, I

[Fish-users] fish on raspberry pi

2012-02-05 Thread Peter Flood
When I get my hands on a Raspberry Pi I will, of course, want to install fish in an Ubuntu environment. Can anyone foresee any problems with using the existing Ubuntu fish package on ARM based architecture? -- Try before

Re: [Fish-users] errors when doing cd -

2012-02-03 Thread Peter Flood
repos. Seq was broken on mac. -Dave On Fri, Feb 3, 2012 at 7:11 AM, Peter Flood <mailto:i...@whywouldwe.com>> wrote: $ seq 0 1 0 On 03/02/2012 19:02, Jan Kanis wrote: I can't reproduce this on linux. The 'prevd' function gets called from

Re: [Fish-users] errors when doing cd -

2012-02-03 Thread Peter Flood
d 'seq 0' on your system? It should not give any output at all. On Thu, Feb 2, 2012 at 16:48, Peter Flood <mailto:i...@whywouldwe.com>> wrote: When I run `cd -` I get this output every time (but the command does work). I'm compiled and installed from the gitorio

[Fish-users] errors when doing cd -

2012-02-02 Thread Peter Flood
When I run `cd -` I get this output every time (but the command does work). I'm compiled and installed from the gitorious master a couple of days ago, OS X lion. I'm only running the command once but the output seems to be duplicated. $ cd - switch: Expected exactly one argument, got 0 /usr/loc

[Fish-users] Why bash is broken

2012-01-31 Thread Peter Flood
I just found this post written by Axel while looking for something else and thought that it would be good to share (apologies if you've seen it already). http://ubuntuforums.org/archive/index.php/t-26795.html Look for the post at April 29th, 2005, 09:50 PM -