[Fish-users] mimedb

2008-10-20 Thread Stestagg
the mimedb bug that causes it to hang on certain XML files causes serious problems with tab-completion with glade files (amongst others). Until a proper fix is released, this temporary patch can be used to limit the mimedb RegEx recursion and make tab-completion usable again: diff -rN

[Fish-users] feature request / discussion

2009-03-19 Thread Stestagg
Someone asked me today how to do this in Fish: command 21 | tee log.txt i.e. pipe both stdout and stderr into the stdin of a subprocess. and it seems that this is not possible (easily anyway) in fish. Is this the sort of thing that would be easy to implement? Thanks Steve Stagg

Re: [Fish-users] how to kill current process in 1 easy step

2009-07-24 Thread stestagg
Fish sessions synchronize their history periodically (every 5 mins by default IIRC) to a global settings daemon. So you probably will not be able to avoid history pollution in this case by killing the session. Havind said that, `kill -9 %self` should do what you want. Steve Stagg On Jul 8,

Re: [Fish-users] key binding

2009-08-26 Thread Stestagg
Oh, and the important bit... bind \e\[A null bind -k up null On Wed, Aug 26, 2009 at 12:38 PM, Phil Harrisp...@harris-family.info wrote: Hi, My first post to this list, so please be nice if I ask stoopid questions. :) I've used fish for a few weeks now and like it tremendously, but there's

Re: [Fish-users] occasional segmentation fault

2009-12-17 Thread stestagg
No, I've been seeing this problem too. Unfortunately, it only does this on my work machine, so I don't have much opportunity to debug it. Also, there doesn't seem to be too much movement on this project, so unless someone wants to pick it up, then there probably won't be much interest in

Re: [Fish-users] Multiline prompt?

2011-01-12 Thread stestagg
Unfortunately I think the waf build on the benhoskins branch is broken, certainly on Ubuntu. I would go off the github branch for more success. On Jan 11, 2011 10:41pm, Martin Bähr mba...@email.archlab.tuwien.ac.at wrote: On Tue, Jan 11, 2011 at 11:42:27PM +1100, Christopher Nilsson

Re: [Fish-users] Stupid PID question

2011-02-23 Thread Stestagg
Look up the ssh proxy command option. something like ProxyCommand ssh user@gateway nc %h 22 in your ssh config file should allow ssh and scp to transparently work. Ste On 23 Feb 2011 14:48, David Frascone d...@frascone.com wrote: My office just started doing DMZ nonsense, so I have to bounce

Re: [Fish-users] Stupid PID question

2011-02-24 Thread Stestagg
To clarify what I mentioned earlier, in my ~/.ssh/config file, I have things that look similar to: Host external_host User username Hostname 91.101.11.101 (- only needed if you can't do proper DNS from the DMZ machine, then put the IP here) ProxyCommand ssh gateway_machine nc %h 22

Re: [Fish-users] sudo vs fish - have to re-enter password

2011-03-07 Thread Stestagg
what is the value of the $USER environment variable in your fish shell? Thanks Steve (ps. sorry for the initial reply, pressed wrong button) On Mon, Mar 7, 2011 at 5:30 PM, David Frascone d...@frascone.com wrote: Same here -- works for me.  And, iirc, it has always worked correctly for me. :)

Re: [Fish-users] nmap -T4 192.168.1.* ...fish: No match for wildcard

2011-03-07 Thread stestagg
Try: nmap -T4 192.168.1.\* Thanks Steve On Mar 7, 2011 8:51pm, Korek korek...@seznam.cz wrote: Hello again, anybody experiencing the same? z@pc ~ nmap -T4 192.168.1.* fish: Warning: No match for wildcard “192.168.1.*”. The command will not be executed. nmap -T4 192.168.1.*

Re: [Fish-users] Axel on Github (Was: Fish Shell adoption / random comments)

2011-07-08 Thread Stestagg
I think he just lost interest. The last time we heard from him, he was apologising for a lack of changes, and promising to conginue with stuff, but his 'velocity' was right down already. Thanks Steve Stagg On Fri, Jul 8, 2011 at 8:53 AM, SanskritFritz sanskritfr...@gmail.com wrote: On Fri,

Re: [Fish-users] Strange behavior, maybe?

2011-07-12 Thread Stestagg
Sorry, I'm on the benhoskins branch in which the docs are different, so I couldn't find the right place, but I'm pretty sure I remember something saying that the auto-reload only works when the file contains one function that matches the file name. I didn't reply before because I didn't have the

Re: [Fish-users] Strange behavior, maybe?

2011-07-12 Thread Stestagg
files by hand Thanks Steve On Tue, Jul 12, 2011 at 9:44 PM, Stestagg stest...@gmail.com wrote: Sorry, I'm on the benhoskins branch in which the docs are different, so I couldn't find the right place, but I'm pretty sure I remember something saying that the auto-reload only works when the file

Re: [Fish-users] passing a \n verbatim in a command substitution

2011-09-21 Thread Stestagg
[sorry Robert, for the direct reply] In bash, at least, the $IFS environment variable is used to specify the characters used to split arguments into their constituent parts. the $* function then uses the first character of this variable to join re-join the parts. It wouldn't be very hard to have

Re: [Fish-users] fish for embedded systems?

2012-06-08 Thread Stestagg
running ./configure ... --without-doxygen worked for me, Thanks Steve On Fri, Jun 8, 2012 at 12:37 AM, Patrick patr...@spellingbeewinnars.orgwrote: I was surprised at the size of the doxygen dependency, about 500M. Is this mandatory? I am day dreaming about using fish in an embedded design.

Re: [Fish-users] Minimize, maximize, resizing escape sequences

2012-08-07 Thread Stestagg
Hi This worked for me: ~ alias dock 'printf \033[2t' ~ dock Thanks Steve On Tue, Aug 7, 2012 at 9:55 PM, Matthias Wiesmann matthias.wiesm...@gmail.com wrote: Hi, I started using fish, a really nice replacement for bash. One feature I was not able to reproduce using fish was docking and

Re: [Fish-users] a query about uninstalling

2012-08-30 Thread Stestagg
It looks like your default shell is still set to fish, so terminal is trying to launch the app you just deleted. Run terminal, then click Shell New Command, and type /bin/bash (make sure Run command inside shell is DEselected) When in bash, run chsh set the shell value to /bin/bash, and exit

Re: [Fish-users] using autosuggestion word by word

2012-09-03 Thread Stestagg
Given the average command (99%) has 10 arguments, I think there's a strong driver for making the completion work on one word at a time, Having to press the right arrow 4/5 times in a few cases is a small price to pay for the benefit of having per-argument completion. Steve On Mon, Sep 3, 2012

Re: [Fish-users] Fish installation problem?

2012-09-10 Thread Stestagg
I would say that the place to look is: /var/crash/_usr_lib_apache2_ mpm-prefork_apache2.0.crash That should give you a stacktrace, and error reason. For security reasons, you might not want to share that file around too much Thanks Steve On Mon, Sep 10, 2012 at 8:18 AM, SanskritFritz

Re: [Fish-users] Fish shell hangs at startup

2013-04-07 Thread Stestagg
I would try deleting ~/.config/fish And trying again You can do this in finder, by selecting the 'Go Go to Folder' menu item and then entering '~/.config'. Rename/delete the fish folder. Steve On Sun, Apr 7, 2013 at 9:44 PM, Göran Sander go...@ptarmiganlabs.comwrote: A week or so ago I had

Re: [Fish-users] bash/zsh compatibility helper?

2013-05-13 Thread Stestagg
Hi Here's an alternate version that doesn't use temporary files, but does use python. Usage: ``` ./source_compat.py source script file here | . ``` Note, in your example, you need to source the file, and then call a function from that file. This is also possible: ``` ./source_compat.py

Re: [Fish-users] problem with virtualenv

2013-05-20 Thread Stestagg
. bin/activate will only work with bash compatible shells. Try . bin/activate.fish. instead Steve On 20 May 2013 19:12, Gour g...@atmarama.net wrote: On Fri, 21 Sep 2012 13:46:25 +0100 Peter Flood i...@whywouldwe.com wrote: I had exactly that problem until I updated virtualenv to 1.8.2 (I

Re: [Fish-users] problem with virtualenv

2013-05-20 Thread Stestagg
Sorry, I see the chain now, you knew that The snippet you pasted did use the bash version tho Steve On 20 May 2013 19:40, Stestagg stest...@gmail.com wrote: . bin/activate will only work with bash compatible shells. Try . bin/activate.fish. instead Steve On 20 May 2013 19:12, Gour g

Re: [Fish-users] Any chance for building/running Fish in Cygwin?

2013-05-22 Thread Stestagg
Reposting to the list: Hi I've just downloaded cygwin and given it a go. I've got it to work (largely) by applying the following patch: diff --git a/builtin_set_color.cpp b/builtin_set_color.cpp index 14cf84c..a45bde7 100644 --- a/builtin_set_color.cpp +++ b/builtin_set_color.cpp @@ -12,7

Re: [Fish-users] Any chance for building/running Fish in Cygwin?

2013-05-22 Thread Stestagg
. On Wed, May 22, 2013 at 2:40 PM, David Frascone d...@frascone.com wrote: I used a bit more #ifdef logic . . . . Patch attached. On Wed, May 22, 2013 at 1:35 PM, Stestagg stest...@gmail.com wrote: Reposting to the list: Hi I've just downloaded cygwin and given it a go. I've got

Re: [Fish-users] export shorthand

2013-05-29 Thread Stestagg
use 'env' so instead of: $ FOO=bar command do: $ env FOO=bar command Steve On Wed, May 29, 2013 at 7:24 PM, Alex Boisvert alex.boisv...@gmail.comwrote: Using bash I'm used to launching commands with exported environment variables by doing this, % FOO=bar some-command Is there a

Re: [Fish-users] Suffix pattern removing

2013-06-17 Thread Stestagg
One simple method would be to use basename: nameis=(basename $dataset .foo) this will perform the following, if $dataset = myfile then $nameis = myfile if $dataset = myfile.foo then $nameis = myfile if $dataset = /path/to/myfile.foo then $nameis = myfile if $dataset = /path/to/myfile.bar then

Re: [Fish-users] Porting Rbenv to fish

2013-07-23 Thread Stestagg
A very similar thread came up on May 13th with the title: [Fish-users] bash/zsh compatibility helper? There were two scripts attached to that thread, both of which should help here Thanks Steve On Tue, Jul 23, 2013 at 11:32 AM, Attila Györffy attila.gyor...@gmail.comwrote: Hi Andrew, As

Re: [Fish-users] Can fish do it as same as zsh?

2013-07-29 Thread Stestagg
I think you want something like this: funced p p function p cd ~/Documents/Projects/$argv end complete --exclusive --command p --arguments '(ls ~/src)' Thanks Steve On Mon, Jul 29, 2013 at 11:16 PM, Zitao Xiong caoer...@gmail.com wrote: In zsh, I can have this as plugin: p() {

Re: [Fish-users] Can fish do it as same as zsh?

2013-07-30 Thread Stestagg
Hi yes, sorry, I had badly quoted the variable in the function. This should be better: p function p cd ~/src/$argv end Note: in this example, and for the completion above, I'm using ~/src/ instead of your folder, because I don't have ~/Documents/Projects/ Thanks Steve

Re: [Fish-users] Fish cd behavior

2013-08-03 Thread Stestagg
It came in in this commit: https://github.com/fish-shell/fish-shell/commit/04ea680e9a803440c85fefae0b4db329c65c1cb2 Based on this issue: https://github.com/fish-shell/fish-shell/issues/84 I personally hate the behaviour, and is less friendly than before, but I guess fish-shell is stuck with it

Re: [Fish-users] Sticky Fish Prompt Line Below Stdout from Background Process

2013-08-14 Thread Stestagg
Xterm and compatible terminals have the ability to set the scrolling region, so it would be theoretically possible to have the scroll region set to exclude the last line(n lines if the prompt wrapped) while the prompt was active, and then revert to full-page scrolling when the prompt isn't active.

Re: [Fish-users] environment setup

2013-08-21 Thread Stestagg
Hi Yes, this has come up a few times on the list. There are some tools available to help you. I've attached both of them to this email. IIRC, if you put source.fish in your fish functions directory then source FreeSurferEnv.sh should just work, source_compat.py is more complicated to use

Re: [Fish-users] Meaning of message when exiting fish-shell with background jobs running

2013-09-19 Thread Stestagg
This has come up before a couple of times, and is addressed (to some extent) with https://github.com/fish-shell/fish-shell/issues/111 which seems to make the message only appear for jobs that are actually stopped (not just backgrounded) The defence (IIRC) for leaving this in was that most

Re: [Fish-users] Determine in a function if there is anything to read on stdin

2013-11-21 Thread Stestagg
This isn't really possible, you can't rely the data being available by the time you want to check if there is data to read. This is a race condition that can only really be solved by putting in a timeout, which sucks. testing if you have a tty is quite a common way to work around the issue

Re: [Fish-users] Creating a ramdisk with fish ?

2014-02-24 Thread Stestagg
Could that be some non visible characters in the output? Bash and fish handle ifs differently. Could you pipe the output of hdiutil to hexdump to see? Steve On 24 Feb 2014 08:04, Yvon Thoraval yvon.thora...@gmail.com wrote: if i decompose the line in two (under SHELL fish): $ hdiutil attach

Re: [Fish-users] Command substitution and functions

2014-08-20 Thread Stestagg
rickard.von.es...@gmail.com wrote: What is strange is that $ echo http://;(vip) outputs only a new line. I would expect it to at least printout: http:// // Rickard On Wed, Aug 20, 2014 at 3:27 PM, Stestagg stest...@gmail.com wrote: My guess would be something to do with how stdout is being

Re: [Fish-users] invalid options are not highlighted in red

2014-11-03 Thread Stestagg
This has definitely worked in the past. Fish has a fairly complex completion system that 'knows' about lots of commands (and can infer arguments from manpages too iirc), so it can predict what arguments will work (never 100% accurate) On Mon, Nov 3, 2014 at 10:06 AM, Santhosh T

Re: [Fish-users] Does fish supports named directories as in zsh

2014-11-03 Thread Stestagg
this and can result in you not being able to change dir much :)) Now, you can type 'cd my_dir' and you'll jump to /backup/project Unfortunately the path in the prompt will be resolved to /backup/project... but the experience is close to what you described. ``` stestagg@Steves-MacBook-Pro ~/t/att

Re: [Fish-users] extension exclusion in auto-completion

2014-11-07 Thread Stestagg
Of course, in this specific case, you could upgrade to Python =3.2 which puts the pic files in a sub-directory ;) Steve On Thursday, November 6, 2014, Matteo Bertini mat...@naufraghi.net wrote: I have a little concern about the auto complete feature: I usually type: ~/D/c/c/src (master $=)

Re: [Fish-users] Stickers

2014-12-18 Thread Stestagg
, provide you guys with a proof that there is no profit and be ready to remove the sticker if ridiculous_fish wanted so. Andrei On Thu Dec 18 2014 at 6:45:17 PM Stestagg stest...@gmail.com wrote: The annoying new EU tax laws make this sort of thing really hard to start from the EU, otherwise, I

Re: [Fish-users] Stickers

2014-12-18 Thread Stestagg
Sorry if this is a double-post, I'm getting bounce report because of too large attachments. The PSD template file (ready for upload I think) is here: https://www.dropbox.com/s/1oz34rl2zxqh54y/fish-sticker.psd?dl=0 Tx Steve

Re: [Fish-users] Stickers

2014-12-18 Thread Stestagg
Thanks for organising all this Andrei Steve On Thu Dec 18 2014 at 10:06:07 PM Andrei Zvonimir Crnković crnkovic@gmail.com wrote: When Sticker Mule publishes this to the store, since Steve used their template I will be able to create a square cut stickers with just a click. Since, I too

Re: [Fish-users] Stickers

2014-12-19 Thread Stestagg
shell' (with small caps instead of 'Fish Shell'). You may want to use same on stickers. On Fri, Dec 19, 2014 at 3:31 PM, Stestagg stest...@gmail.com wrote: I've just ordered 25 of the cut out ones to the UK (Ordering more incurs some hefty postage charges :) ), so if anyone wants some, I'd

Re: [Fish-users] Stickers

2014-12-30 Thread Stestagg
of humorous though That is what I was going for. Haha :-) On Thu Dec 18 2014 at 11:24:35 PM Stestagg stest...@gmail.com wrote: Thanks for organising all this Andrei Don't mention it, I want some stickers to! Andrei

Re: [Fish-users] Stickers

2014-12-30 Thread Stestagg
, Mandeep Sandhu mandeepsandhu@gmail.com wrote: I got mine, yesterday!! :) The red is visible on the black background (see pic). Thanks for the great work! Now to figure out where to put the stickers! :) Happy holidays everyone! On Tue, Dec 30, 2014 at 1:24 PM, Stestagg stest

Re: [Fish-users] should most pull-requests be tied to an open issue?

2016-03-18 Thread Stestagg
this? Or is there another factor here? Steve On Thu, Mar 17, 2016 at 10:04 PM Kurtis Rader <kra...@skepticism.us> wrote: > On Thu, Mar 17, 2016 at 12:54 AM, Stestagg <stest...@gmail.com> wrote: > >> I was under the impression that, on GitHub, pull requests are as easy to >

Re: [Fish-users] should most pull-requests be tied to an open issue?

2016-03-19 Thread Stestagg
I was under the impression that, on GitHub, pull requests are as easy to discover as issues. Give this, I'm not sure I understand the benefit of this restriction Steve On Thu, 17 Mar 2016 at 05:22, Kurtis Rader wrote: > I don't want to make submitting bug fixes onerous.

Re: [Fish-users] should most pull-requests be tied to an open issue?

2016-03-19 Thread Stestagg
Thanks for the response, that's quite interesting. I guess there are a few angles to consider for that, issues being one of them :) Steve On Thu, Mar 17, 2016 at 10:56 PM Kurtis Rader <kra...@skepticism.us> wrote: > On Thu, Mar 17, 2016 at 3:40 PM, Stestagg <stest...@gmail.com>