Re: [Fish-users] should most pull-requests be tied to an open issue?
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> wrote: > >> So, would it be fair to say that you've experienced the following, a few >> times: >> >> 1. You were reading code, and it wasn't clear what the intent of the code >> was >> 2. You found that the code had been changed, but it wasn't clear why the >> new code was better/more appropriate than the old code >> 3. The commit message didn't contain enough information >> 4. The pull request didn't explain why the code change was made >> 5. There was no bug/issue to trace the change to, that could give context >> >> If that's fair, then I would probably suggest looking at numbers 1, 2, >> and 3 as the best way to resolve this? Or is there another factor here? >> > > Item one isn't the issue. If I'm reviewing code, especially in the context > of a code review, and the behavior of the code is unclear then I would ask > that it be refactored or appropriate comments added. > > Item two is a bit of a red-herring. If it's an enhancement then there is > often no old code to compare it to. But even if existing code is being > changed a simple comparison of the old and new code is seldom sufficient to > understand why the change is being made. > > Items three and four are the heart of the problem. In the few months I've > been actively contributing a huge number of the changes I've seen merged, > perhaps a majority, have lacked sufficient context (i.e., background > information) for someone to easily evaluate how well each change solves the > problem. Be it an enhancement or bug fix. And this goes for almost all of > the older commits I've looked at. > > -- > Kurtis Rader > Caretaker of the exceptional canines Junior and Hank > -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] should most pull-requests be tied to an open issue?
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 Raderwrote: > I don't want to make submitting bug fixes onerous. However, in my > professional experience (not open source) it seems to me most > pull-requests should be tied to an open issue so they're easier to > discover. That also provides an opportunity to discuss the issue before > we're presented with a pull-request. Obviously there are some types of > pull-requests, such as trivial fixes of typographical errors or style > cleanups or improvements to the documentation, that don't need or benefit > from an associated issue. So we shouldn't make the association with an open > issue a hard requirement. Too, unlike projects internal to a company we > can't reasonably expect all contributors to the fish project to be aware of > norms like tying changes to open issues. > > My question is whether other contributors of changes have an opinion? And > if you're in agreement with me what's the best way to encourage tying > pull-requests to open issues? > > -- > Kurtis Rader > Caretaker of the exceptional canines Junior and Hank > > -- > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140 > ___ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users > -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] should most pull-requests be tied to an open issue?
So, would it be fair to say that you've experienced the following, a few times: 1. You were reading code, and it wasn't clear what the intent of the code was 2. You found that the code had been changed, but it wasn't clear why the new code was better/more appropriate than the old code 3. The commit message didn't contain enough information 4. The pull request didn't explain why the code change was made 5. There was no bug/issue to trace the change to, that could give context If that's fair, then I would probably suggest looking at numbers 1, 2, and 3 as the best way to resolve 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 >> discover as issues. Give this, I'm not sure I understand the benefit of >> this restriction >> > > It's hard enough to get people to search the open issues before opening a > new issue. But that isn't really the motivation. What drove me to propose > this was researching the reason for several changes and finding nothing but > the original commit comment. And that commit comment was sorely lacking in > terms of details such as the rationale for the change. > > Also, I want to make it really clear that this would not be a > "restriction". I would never summarily reject someones non-trivial > pull-request solely because it wasn't tied to an open issue. Because this > is an open source project rather than internal to a company we cannot, and > do not, want to impose that level of control. What I'm wondering is if > others have been as frustrated as myself when trying to figure out why many > changes are being made and if we can foster an environment that encourages > a little more discussion before people go to the trouble of making a > pull-request. > > -- > Kurtis Rader > Caretaker of the exceptional canines Junior and Hank > -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Stickers
So some good news, and some bad news, The stickers came through! If you're in the UK, I can send you a couple, just mail me your address. The bad news is that the red is too dark. I had thought the colors were good, but thin red lines against the black just don't stand out. I'll send an updated PSD, Andrei, can you update the store when I do? Thanks Steve On Mon Dec 22 2014 at 05:51:23 ridiculous_fish corydo...@ridiculousfish.com wrote: So cool! I ordered some right away. Thanks for putting this together! _fish On Dec 18, 2014, at 10:23 PM, Andrei Zvonimir Crnković crnkovic@gmail.com wrote: The stickers are ready! Here are the links: die cut - http://www.stickermule.com/marketplace/3507-fish-shell-sticker-die-cut square cut - http://www.stickermule.com/marketplace/3508-fish-shell-sticker-square-cut The markup is 0% and can be confirmed by comparing the price with this screenshots: http://puu.sh/dAK4K/cfea18c1db.png and http://puu.sh/dAK5u/258ed295d2.png On Thu Dec 18 2014 at 11:30:05 PM Andrei Zvonimir Crnković crnkovic@gmail.com wrote: On Thu Dec 18 2014 at 11:15:16 PM Greg Reagle greg.rea...@umbc.edu wrote: Bouncer is kind 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 -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151; iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Stickers
OK, I'll leave it then :) I think it looks OK under natural light, but in a dimmer context, things get a bit muddy, let's see what others think Steve On Tue Dec 30 2014 at 23:10:59 Mandeep Sandhu mandeepsandhu@gmail.com wrote: Oops forgot to attach pic On Tuesday, December 30, 2014, 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...@gmail.com wrote: So some good news, and some bad news, The stickers came through! If you're in the UK, I can send you a couple, just mail me your address. The bad news is that the red is too dark. I had thought the colors were good, but thin red lines against the black just don't stand out. I'll send an updated PSD, Andrei, can you update the store when I do? Thanks Steve On Mon Dec 22 2014 at 05:51:23 ridiculous_fish corydo...@ridiculousfish.com wrote: So cool! I ordered some right away. Thanks for putting this together! _fish On Dec 18, 2014, at 10:23 PM, Andrei Zvonimir Crnković crnkovic@gmail.com wrote: The stickers are ready! Here are the links: die cut - http://www.stickermule.com/marketplace/3507-fish-shell-sticker-die-cut square cut - http://www.stickermule.com/marketplace/3508-fish-shell-sticker-square-cut The markup is 0% and can be confirmed by comparing the price with this screenshots: http://puu.sh/dAK4K/cfea18c1db.png and http://puu.sh/dAK5u/258ed295d2.png On Thu Dec 18 2014 at 11:30:05 PM Andrei Zvonimir Crnković crnkovic@gmail.com wrote: On Thu Dec 18 2014 at 11:15:16 PM Greg Reagle greg.rea...@umbc.edu wrote: Bouncer is kind 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 -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Stickers
I've created a pull request that includes the logo source files with (lower-case title), the original title case version is included in the PSD as a hidden layer. Thanks Steve On Fri Dec 19 2014 at 10:10:13 AM Siteshwar sitesh...@gmail.com wrote: We generally refer to fish shell as 'fish 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 be happy to mail a few to UK people. I'd like to keep some for use at events tho Thanks Steve On Fri Dec 19 2014 at 7:45:29 AM Andrei Zvonimir Crnković crnkovic@gmail.com wrote: I've been given by the Sticker Mule a link to give you guys $10 store credit so you can spend it on the stickers. https://www.stickermule.com/unlock?ref_id=7814260701 Just as a disclaimer, if you use this I also get awarded $10, but the price will remain the same. On Fri Dec 19 2014 at 7:23:40 AM Andrei Zvonimir Crnković crnkovic@gmail.com wrote: The stickers are ready! Here are the links: die cut - http://www.stickermule.com/marketplace/3507-fish-shell-sticker-die-cut square cut - http://www.stickermule.com/marketplace/3508-fish-shell-sticker-square-cut The markup is 0% and can be confirmed by comparing the price with this screenshots: http://puu.sh/dAK4K/cfea18c1db.png and http://puu.sh/dAK5u/258ed295d2.png On Thu Dec 18 2014 at 11:30:05 PM Andrei Zvonimir Crnković crnkovic@gmail.com wrote: On Thu Dec 18 2014 at 11:15:16 PM Greg Reagle greg.rea...@umbc.edu wrote: Bouncer is kind 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 -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151; iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Regards, Siteshwar -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Stickers
It doesn't have the terminal border, but I made this. It's all photoshop vector shapes, so should print well, and uses the stickermule template. https://www.dropbox.com/s/rjko6jhc4mmac0f/fish.png?dl=0 The thin purple line would be the cut margin. If you want the PSD file for submission, let me know Thanks On Thu Dec 18 2014 at 7:18:09 PM Andrei Zvonimir Crnković crnkovic@gmail.com wrote: Ok, so I contacted Sticker mule and they will push this to the marketplace with 0% profit for me as the submitter. But the guy said and I quote: Unfortunately, it would be pixelated. Would you be able to send us higher resolution artwork? We require a minimum resolution of 300 dpi at your sticker’s size or vector artwork for optimal print quality. So we would have to find a bigger image. Let's make this happen! On Thu Dec 18 2014 at 7:43:24 PM Andrei Zvonimir Crnković crnkovic@gmail.com wrote: I would do this via Sticker mule with no profit - but I need a confirmation that the image in question ( http://fishshell.com/assets/img/Terminal_Logo_CRT_Small.png) can be used in this way. Thinking about this I have decided that I will open the sticker shop, 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 would set something up Better to be done out of the US tbh Steve On Thu Dec 18 2014 at 5:30:59 PM Andrei Zvonimir Crnković crnkovic@gmail.com wrote: I wonder if we could use the png image from the site? On Thu Dec 18 2014 at 6:28:33 PM Lewis Gunsch le...@gunsch.ca wrote: On Thu, Dec 18, 2014 at 1:58 AM, Andrei Zvonimir Crnković crnkovic@gmail.com wrote: Wouldn't be cool if we had stickers like the guys over at oh-my-zsh do? Yes, I agree, that would be cool. I would buy fish stickers if they were available. Cheers, ~Lewis -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/ 4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/ 4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151; iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Stickers
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 -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Stickers
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 am now getting a bouncer (?) for file size - I submitted the new design to SM and they responded saying that it will take 3 days to process this and we should then be live. I will post a link to the stickers (die cut and square cut) here in the mailing list. Thank you Steve. Andrei. On Thu Dec 18 2014 at 11:00:04 PM charlie charlie.f...@gmail.com wrote: Could we see one with just the fish in a square cut ? Thanks for doing this Steve! -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151; iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] extension exclusion in auto-completion
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 $=) gvim somedir/somefi[le.pyc] -- note the .pyc, but the folder has the .py file too I likely don't want an editor to open a .pyc file, for non python people, is like auto complete over a .o file. Perhaps I'm missing something, how can I modify this behaviour? I think a sane default is to have an editor class of executables and make them ignore .gitignore or similar ignores. Is it possible to achieve a similar result already? Thanks, Matteo -- Matteo Bertini http://www.slug.it/naufraghi -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] invalid options are not highlighted in red
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 santhosh.tek...@gmail.com wrote: the article http://lwn.net/Articles/136232/ says that fish shell can show misspelled options as errors. it has a screenshot also where --colour is highlighted in red in ls --colour command. when I tried the same, it didn't work. so i asked the question - santhosh On Mon, Nov 3, 2014 at 2:39 PM, Cedric Auger sedri...@gmail.com wrote: 2014-10-31 17:58 GMT+01:00 Santhosh T santhosh.tek...@gmail.com: when i type ls --unknownoption i am expected --unknownoption to be shown in red. fish only showing wrong commands in red color, but not wrong options i already did run fish_update_completions I am using MAC thanks Santhosh I first glance, I would say, that it is not a realistic feature. How could you tell if a given option is a right or a wrong one? For the command, work is easy: just ask the file system is there is such an executable program. But there is no Unix command which tells given a program and options if they are compatible. Of course, like autocompletion, you could forbid some options (but that would concern only very specific programs for which the set of good options can be easily known). Plus there should be some clever parsing, as for example ls -- --unknownoption is a valid command (at least on the Ubuntu version I have). That is because I can create a file named --unknownoption. -- .../Sedrikov\... -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Does fish supports named directories as in zsh
The closest that I can think of is: 1. Create a directory somewhere: e.g. ~/.named_dirs 2. Put symlinks in that directory: e.g. ~/.named_dirs/my_dir /backup/project 3. set your CDPATH: set -x CDPATH '.' $HOME/.named_dirs (Remember to include . in CDPATH, fish can be quite picky about 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 pwd /Users/stestagg/tmp/att stestagg@Steves-MacBook-Pro ~/t/att ls media stestagg@Steves-MacBook-Pro ~/t/att cd my_dir stestagg@Steves-MacBook-Pro /v/spool pwd /private/var/spool stestagg@Steves-MacBook-Pro /v/spool ls -lah ~/dirs/ ... lrwxr-xr-x 1 stestagg staff11B 4 Nov 00:50 my_dir - /var/spool/ ... stestagg@Steves-MacBook-Pro /v/spool echo $CDPATH . /Users/stestagg/dirs/ ``` On Mon, Nov 3, 2014 at 9:13 AM, Cedric Auger sedri...@gmail.com wrote: Why not create symlinks? 2014-11-01 8:40 GMT+01:00 Santhosh T santhosh.tek...@gmail.com: Hi Greg, the approach you suggested works, but not user friendly autocompleting variables appends SPACE rather than / i mean: cd $my_dTAB now it autocompletes as: cd $my_dirSPACE instead of cd $my_dir/ thanks santhosh On Sat, Nov 1, 2014 at 6:35 AM, Greg Reagle greg.rea...@umbc.edu wrote: On Fri, Oct 31, 2014, at 07:25 PM, Santhosh T wrote: zsh supports named directories as explained in http://blog.bytetouch.com/tag/named-directories/ does fishshell has something equivalent? I am just a fish novice, but here are my two cents. I don't know if fish has that feature, but it could be done with variables: .set -U my_dir /usr/local/share cd $my_dir/man/ -- http://www.fastmail.fm - Send your email first class -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- .../Sedrikov\... -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Command substitution and functions
Sorry, replying to all this time: I can actually reproduce this without vagrant. From skimming the source, vagrant expands to something like: ssh -t host /bin/bash -c 'command' so, my equivalent function is: function x_test ssh -t HOST /bin/bash -c 'echo hi' ^ /dev/null end If i define this, and run it. I get the same behaviour as you. The thing here is that vagrant adds the '-t' (as I guessed earlier) This causes ssh to allocate a new PTY (when stdin isn't interactive) and for some reason this causes fish to background the job In my example, I get the following: ~ x_test hi ~ echo HI:(x_test) [blank line] %~ jobs Job Group State Command 3 10976 stopped ssh -t XXX /bin/bash -c 'echo hi' ^ /dev/null %~ fg Send job 3, 'ssh -t XXX /bin/bash -c 'echo hi' ^ /dev/null' to foreground ~ (in my prompt % indicates stopped jobs) So, adding a '-T' to the vagrant ssh command should fix this On Wed, Aug 20, 2014 at 3:05 PM, Glenn Jackman jack...@pythian.com wrote: This got me at first too. Command substitution returns a *list*, not just a string. When you prefix a list with a string (http://;), that string is prefixed onto each member of the list: $ function tmp; echo 1; echo 2; echo 3; end $ echo foo(tmp) foo1 foo2 foo3 If the list is empty, the string is prefixed onto nothing, hence the empty output. Your vip function must be returning nothing. What does this return: printf %s\n (vip) On Wed, Aug 20, 2014 at 9:54 AM, Rickard von Essen 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 captured/ssh/vagrant weirdness It might be worth trying adding -T or -t to the ssh command to force/unforce ssh from using pty allocation On Wed, Aug 20, 2014 at 2:19 PM, Rickard von Essen rickard.von.es...@gmail.com wrote: Hi, It turns out that is the function creating the url that is not working as I expected. This is the actual code: function vip vagrant ssh $argv[1] -c ifconfig eth1 | sed -ne 's/.*inet addr:\(\S*\)\s*Bcast.*/\1/p' \ ^ /dev/null end Using it gives: $ vip 192.168.233.170 But running: $ open http://;(vip) Usage: open [-e] [-t] [-f] [-W] ... Any ideas? // Rickard On Wed, Aug 20, 2014 at 2:19 PM, Cedric Auger sedri...@gmail.com wrote: Works perfectly for me: - Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish cauger@cauger-PNR ~ function url echo some url end cauger@cauger-PNR ~ open (url)/index.html xdg-open: file 'some url/index.html' does not exist cauger@cauger-PNR ~ Have you tried to run it in some interactive shell, in a script or somewhere else? 2014-08-20 13:14 GMT+02:00 Rickard von Essen rickard.von.es...@gmail.com: Hi, If i have a function that computes an URL, say: function url echo some url end Then I want to use it in a command substitution. Something like: open (url)/index.html but (url) is expanded to empty string. How should I do this? Regards Rickard von Essen -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- .../Sedrikov\... -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- *Glenn Jackman* Senior Software Developer *Pythian - Love your data* jack...@pythian.com Tel: +1 613 565 8696 Ext. 1478 Mobile: +1 613 808 4984 www.pythian.com -- -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Creating a ramdisk with fish ?
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 -nomount ram://204800 /dev/disk4 $ diskutil erasevolume HFS+ RamDisk /dev/disk4 Started erase on disk4 Unmounting disk Erasing Initialized /dev/rdisk4 as a 100 MB case-insensitive HFS Plus volume Mounting disk Finished erase on disk4 RamDisk it's OK then i was hopping doing : $ set monVolume (hdiutil attach -nomount ram://204800) $ diskutil erasevolume HFS+ RamDisk $monVolume Unable to find disk for /dev/disk5 was working correctly, but not. strange the Unable to find disk for /dev/disk5 because : $ lal /dev/disk* brw-r- 1 root operator1, 0 20 fév 15:31 /dev/disk0 brw-r- 1 root operator1, 1 20 fév 15:31 /dev/disk0s1 brw-r- 1 root operator1, 2 20 fév 15:31 /dev/disk0s2 brw-r- 1 root operator1, 3 20 fév 15:31 /dev/disk0s3 brw-r- 1 root operator1, 4 20 fév 15:31 /dev/disk1 brw-r- 1 root operator1, 5 20 fév 15:31 /dev/disk1s1 brw-r- 1 root operator1, 6 20 fév 15:31 /dev/disk1s2 brw-r- 1 root operator1, 7 20 fév 15:31 /dev/disk2 brw-r- 1 root operator1, 8 20 fév 15:31 /dev/disk2s1 brw-r- 1 root operator1, 9 20 fév 15:31 /dev/disk2s2 brw-r- 1 root operator1, 10 20 fév 15:31 /dev/disk2s3 brw-r- 1 ytstaff 1, 11 24 fév 07:50 /dev/disk3 brw-r- 1 ytstaff 1, 12 24 fév 08:52 /dev/disk4 brw-r- 1 ytstaff 1, 13 24 fév 08:56 /dev/disk5 2014-02-24 7:52 GMT+01:00 Yvon Thoraval yvon.thora...@gmail.com: unfortunately not ;-) .-[yt@iMac.local:~/Downloads][20:41:12] '-$ diskutil erasevolume HFS+ Ram Disk (hdiutil attach -nomount ram://204800) Unable to find disk for /dev/disk3 .-[yt@iMac.local:~/Downloads][07:50:54] '-$ same result with parenthesis as back ticks... 2014-02-24 7:49 GMT+01:00 Yvon Thoraval yvon.thora...@gmail.com: fine thanks! 2014-02-23 20:59 GMT+01:00 Robert Carpenter rob...@robacarp.com: Yvon, Backticks are indeed the problem. Simply swap them out for parentheses and it should work as expected: diskutil erasevolume HFS+ Ram Disk (hdiutil attach -nomount ram://204800) Robert On Sun, Feb 23, 2014 at 10:34 AM, Yvon Thoraval yvon.thora...@gmail.com wrote: With shell fish i get : .-[yt@iMac.local:~/Downloads][18:23:13] '-$ diskutil erasevolume HFS+ Ram Disk `hdiutil attach -nomount ram://204800` Unable to find disk for `hdiutil .-[yt@iMac.local:~/Downloads][18:32:34] '-$ Switching to sh works : .-[yt@iMac.local:~/Downloads][17:55:51] '-$ sh sh-3.2$ diskutil erasevolume HFS+ Ram Disk `hdiutil attach -nomount ram://204800` Started erase on disk3 Unmounting disk Erasing Initialized /dev/rdisk3 as a 100 MB case-insensitive HFS Plus volume Mounting disk Finished erase on disk3 Ram Disk sh-3.2$ exit exit .-[yt@iMac.local:~/Downloads][18:10:46] '-$ What should I avoid with fish ? th backticks ` ??? -- Yvon@48.871651804,2.384858688 -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Yvon@48.871651804,2.384858688 -- Yvon@48.871651804,2.384858688 -- Yvon@48.871651804,2.384858688 -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis security monitoring. All-in-one tool.
Re: [Fish-users] Determine in a function if there is anything to read on stdin
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 Thanks Steve On Thu, Nov 21, 2013 at 2:43 AM, David Adam zanc...@ucc.gu.uwa.edu.auwrote: On Wed, 20 Nov 2013, Marcin Zajączkowski wrote: I'm porting a script from bash to fish which reads stdin and I have a problem with determining if there is anything to read from stdin or (n the other case) input should be fetched from call params. There is in the original script: # If no tty, data should be available on stdin if ! [[ $( tty ) == /dev/* ]]; then input=$( /dev/stdin) # Else, fetch input from params else input=$* fi and in fact when used after pipe it returns not a tty. In fish it works fine for a simple execution: $ echo aaa | tty not a tty but when tty is called within my function it always returns /dev/pts/*. This mirrors the behaviour of your function above: ``` function myfunc if not tty /dev/null read input else set input $argv end echo $input end ``` zanchey@motsugo ~ myfunc 1 2 3 1 2 3 zanchey@motsugo ~ echo aaa | myfunc aaa How can I determine that my function has something to on read stdin (to not call read then which would open an interactive prompt)? This is a different question; the tty function does not check for the presence or absence of data on stdin. I don't actually know of a clever way of doing this from a shell script; in C I guess you'd do a select() with a zero timeout or something. David Adam zanc...@ucc.gu.uwa.edu.au -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Meaning of message when exiting fish-shell with background jobs running
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 processes (even some GUI ones) get pretty upset if their controlling terminal (standard in/standard out) go away on them while they're running. This can lead to some strange errors and bad behaviour. Personally, I don't particularly care either way, but I'm sure it was discussed before Thanks Steve On Thu, Sep 19, 2013 at 8:59 AM, Mandeep Sandhu mandeepsandhu@gmail.com wrote: i can confirm the behavior. Thanks! i believe the message is in error though. because the job in the background is not actually stopped. there should be a different message instead or fish should just exit. I think fish should just exit, same as bash. I'll open an issue for it and fix it (if I can)? apart from that, the behavior is the same as bash. stopped jobs get a notice, and the second time bash exits and the stopped jobs are killed. jobs running in the background are reparented without a warning. I tried the above scenario in bash. And ,to be honest, it was the first time I saw There are stopped jobs msg in bash! After the second exit, the stopped program was killed. Regards, -mandeep greetings, martin. -- eKita - the online platform for your entire academic life hackerspace beijing - http://qike.info -- chief engineer eKita.co pike programmer pike.lysator.liu.se caudium.net foresight developer realss.com foresightlinux.org unix sysadmintrainer developer societyserver.org Martin Bähr working in china http://societyserver.org/mbaehr/ -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] environment setup
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 (and uses python) but is more flexible: ``` ./source_compat.py source script file here | . ``` Thanks Steve On Wed, Aug 21, 2013 at 2:50 PM, Kayle Sawyer ksl...@gmail.com wrote: Hi, I use FreeSurfer brain MRI analysis software, which is mostly command-line based. To use the software, a script must be 'sourced' which sets environment variables, paths, and support libraries. The software comes with csh and sh versions, which obviously can't be sourced with fish. Running 'bash script.sh' won't work either, because after the variables are set up in bash I return to the fish shell with no setup. Do I need to port the script to fish, or is there an easier way? If I do have to re-write the script, I'm guessing I should start from the csh script - are there any tools which convert the syntax? Thanks, -Kayle PS FreeSurfer Instructions: http://ftp.nmr.mgh.harvard.edu/fswiki/SetupConfiguration -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users source_compat.py Description: Binary data source.fish Description: Binary data -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Sticky Fish Prompt Line Below Stdout from Background Process
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. I would imagine the management code for this, and the feature-detection/fallback etc.. would be far more effort than what you'd gain, however. Steve On Wed, Aug 14, 2013 at 10:34 AM, H. Ryan Jones hryanjo...@gmail.comwrote: Hi Samfel, You'll see the output keep scrolling onto the screen, but the fish prompt is left behind and doesn't stick to the bottom of it. This (in my experience) is usual behavior of shells. It generally will screw things up (visually at least) when you send output to a terminal from a process running in the background. You seem to be suggesting that fish should be different in this respect and as new output comes onto the screen from a backend process that this would be inserted above the current prompt (so new output can be seen, but a command can also be easily typed)? Am I interpreting this correctly? That seems like a good idea to me, however, one weird situation I can envision is where you have a background process generating output while a foreground one is also generating output. In that case it would be possible to have foreground output on the screen, while your background output was then off screen and essentially two insertion points for output. I don't know exactly why that might be bad, but it seems like it has potential to cause problems.* * To try to visually demonstrate: *This seems like desired behavior seems nice* * * *$* background_process Background Output line 1 Background Output... (more output will be appended here) *$* #can type away command with background output happily chugging away above *A weird situation that would be likely to arise from above behavior* * * *$* background_process Background Output Background Output... (background output being added into the terminal, possibly offscreen) *$* foreground_process Foreground Output Foreground Output... (possibly a lot of output, say pages worth) Anybody else have thoughts? -Ryan __ *(206) 414-8475* hryanjones.com On Wed, Aug 7, 2013 at 6:43 AM, Samuel Melrose s...@infitialis.com wrote: Hello, I've been trying to do something with bash that is starting to seem impossible and I'm hoping fish will come to the rescue. Please see the question asked here: http://serverfault.com/questions/528993/bash-prompt-below-output-background-log-tail And let me give a simple example: In a bash shell, run the following command: while true; do echo `date` temp; sleep 3; done Then open your fish shell and run: tail -f temp You'll see the output keep scrolling onto the screen, but the fish prompt is left behind and doesn't stick to the bottom of it. Do you know of any way you could make it stick to the bottom of the output as it appears? And if it's not a current feature, is it something easy to implement? Thanks. Samuel Melrose s...@infitialis.com -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Fish cd behavior
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 now Steve On Sat, Aug 3, 2013 at 4:48 AM, H. Ryan Jones hryanjo...@gmail.com wrote: Although I don't see an explanation in the user documentation on this subjecthttp://ridiculousfish.com/shell/user_doc/html/index.html#completion, what I have found in general (and this may be different specifically for the `cd` command) is that pushing TAB once will either: - complete out to the longest common filename, or other completion - e.g. $ ls /bin/mouTAB will complete to $ ls /bin/mount - or if it's already at the longest common completion it will give you a list of possible completions - e.g. $ ls /bin/mountTAB will show - …bin/mount …bin/mountpoint - Then hitting tab repeatedly after this will cycle through the possibilities that were given in the previous list of possible completions (so if the first one is right you just hit TAB again and keep on moving) I think this behavior might be somewhat similar to what you're seeing. The double TAB habit from bash can be broken. __ *(206) 414-8475* hryanjones.com On Fri, Aug 2, 2013 at 8:35 PM, Martin Bähr mba...@email.archlab.tuwien.ac.at wrote: On Fri, Aug 02, 2013 at 08:20:01PM -0700, Mark Xia wrote: Hi, I was wondering why fish has this cd behavior: $mkdir new $cd new $mkdir foo $mkdir bar $mkdir sup now type cdspacetabtab The first tab lists the files/folders in new, but the second tab causes your input to become cd bar/ Is this a bug? If no, how do we use this correctly? For example, I am used to pressing tab more than once from bash because it doesn't change your input, all it does is relist your files/folders. i have seen this problem too. not just with cd, but with file completion in general: ls ./tabtab shows the list as expected, but type a letter, say s i end up with ls ./bar/s so it looks like there is a bug with hitting tab a second time greetings, martin. -- eKita - the online platform for your entire academic life hackerspace beijing - http://qike.info -- chief engineer eKita.co pike programmer pike.lysator.liu.se caudium.net foresight developer realss.com foresightlinux.org unix sysadmintrainer developer societyserver.org Martin Bähr working in china http://societyserver.org/mbaehr/ -- Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Can fish do it as same as zsh?
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 -- Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Can fish do it as same as zsh?
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() { cd ~/Documents/Projects/$1; } _p() { _files -W ~/Documents/Projects -/; } compdef _p p It will auto complete after I type p, but I can't find a way to do it in fish, any suggestions? -- Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711iu=/4140/ostg.clktrk___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Porting Rbenv to fish
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 far as I understand the current problem is that `rbenv init -` is using POSIX compatible syntax so when Rbenv gets sourced, fish currently cannot deal with it. It’s got export, typeset, etc inside it so when fish would want to eval it, it fails for obvious reasons. Also, `rbenv shell` is a non working command at the moment for the same reason. These would red to be extended so that rbenv would use fish compatible commands (set instead of export, etc) I assume you must have set up your own scripts to work with Rbenv within fish. Am I not right? — Attila On 22 Jul 2013, at 19:11, Andrew Kreps andrew.kr...@gmail.com wrote: I'd be interested in helping out, as I'm both a fish and rbenv user. The one question I have is, what functionality are you lacking? I'm using rbenv inside fish without any issues. On Mon, Jul 22, 2013 at 9:09 AM, Attila Györffy attila.gyor...@gmail.com wrote: Hi All, As an attempt to migrate my default shell from zsh to fish, I found myself not being able to use some of my favourite tools, mainly Rbenv. For some of you who may not be familiar with Rbenv, it is a sophisticated Ruby version manager for POSIX shells: https://github.com/sstephenson/rbenv Some people have been able to make Rbenv work with some hacks or workarounds by creating their own shell functions that mimic the original functionality of Rbenv, however the problem is that it might get out of sync with the original Rbenv implementation meaning that those hacks could potentially break any moment. I think as it is with Rbenv, fish’s popularity is highly dependant on the fish compatibility of the most commonly used tools. Rather than introducing external workarounds, I think we need to get the most common tools to support the new shell out of the box in order to raise awareness of fish itself. I understand that this sounds like a major pain in the a** and would involve lots and lots of work from the community but we could do one thing at a time. Having said that I decided to try adding fish shell compatibility to Rbenv. Unfortunately, turns out that I’m not a huge shell magician and I’m just getting familiar with the fish shell scripts. Having said that, I’m looking for contributors and guidelines towards doing a good job in adding fish compatible functionality to Rbenv. I’ve joined the discussion on Github that is related to the fish shell compatibility: https://github.com/sstephenson/rbenv/issues/195 I did contact the authors of Rbenv and manages to squeeze out some information of them. Now, even though Rbenv is making use of bash or zsh (either one of them, really) those shells do not necessarily need to be your login shell, just need to be available on the system to make sure Rbenv operates as expected. Looks like the majority of the work would be to ensure that this particular script spits out fish compatible commands: https://github.com/sstephenson/rbenv/blob/master/libexec/rbenv-init Is there somebody who might be interested in helping out? Here’s what we’d need: * A fish shell compatible output of `rbenv init -` so that it can be evaluated by fish and the rbenv function could be loaded into the shell. * A shell script testing too that is compatible with fish. Rbenv issuing Bats https://github.com/sstephenson/bats for testing Bash scripts. Having tests for the fish compatible layer of Rbenv would be great. Let me know if somebody is eager to help out. Thanks, — Attila PS: If somebody knows of a useful and easy to understand resource online that would help in porting POSIX scripts to fish, then let mw know please. (Mostly for shell script noobs like myself) -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk
Re: [Fish-users] Suffix pattern removing
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 $nameis = myfile.bar so provided you don't need absolute paths, this is simple. Steve On Mon, Jun 17, 2013 at 9:22 AM, aurelien coillet acoil...@gmail.comwrote: Hi, How can I perform suffix removal as this (bash) command: nameis=${dataset%.*} if dataset is a filename with extension (say foo.txt), nameis will only contain foo. Is there a way to do that with fish? Thanks, -- Aurélien Coillet -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] export shorthand
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 similar shorthand for fish? I've tried, % set FOO bar; some-command but that didn't work and I want to avoid doing, % set -x FOO bar % some-command if possible. Any suggestions? thanks! -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Any chance for building/running Fish in Cygwin?
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 +12,7 @@ Functions used for implementing the set_color builtin. #if HAVE_NCURSES_H #include ncurses.h #else -#include curses.h +#include ncurses/ncurses.h #endif #if HAVE_TERM_H diff --git a/expand.cpp b/expand.cpp index 74e5010..d45ab9c 100644 --- a/expand.cpp +++ b/expand.cpp @@ -18,7 +18,7 @@ parameter expansion. #include limits.h #include sys/param.h #include sys/types.h -#include sys/sysctl.h +//#include sys/sysctl.h #include termios.h #include dirent.h #include sys/stat.h diff --git a/fallback.h b/fallback.h index eba91be..9dd4709 100644 --- a/fallback.h +++ b/fallback.h @@ -93,8 +93,8 @@ int tputs(const char *str, int affcnt, int (*fish_putc)(tputs_arg_t)); work around this here. */ -#define tparm tparm_solaris_kludge -char *tparm_solaris_kludge(char *str, ...); +//#define tparm tparm_solaris_kludge +//char *tparm_solaris_kludge(char *str, ...); #endif when fish starts up there are a few error messages, but things seem to be mainly working. Thanks Steve On Wed, May 22, 2013 at 7:15 PM, Costin Caraivan costincarai...@gmail.comwrote: Hello there! I am one of those poor souls that are stuck in Windows. The reasons for this are not very important, but I'm here and I have to make do with whatever tools I have. Fish seems awesome but I saw no mention of a Windows (Cygwin port). I didn't know the difficulty of this task, so I set about to pass the first hurdle - compile Fish in Cygwin. So I went to this page: https://github.com/fish-shell/fish-shell/#building and I started installing the required dependencies. This is the final list of package installed: http://paste.ubuntu.com/5684738/ - I hope I have everything needed to build Fish. Anyway, I started the process: autoconf - OK ./configure - OK make - NOT OK make install - Didn't even reach this First error I got during make: g++ -g -O2 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-exceptions -Wall -DLOCALEDIR=\/usr/local/share/locale\ -DPREFIX=L\/usr/local\ -DDATADIR=L\/usr/local/share\ -DSYSCONFDIR=L\/usr/local/etc\ -DBINDIR=L\/usr/local/bin\-c -o builtin.o builtin.cpp In file included from builtin.cpp:397:0: builtin_set_color.cpp:15:20: fatal error: curses.h: No such file or directory compilation terminated. builtin: recipe for target `builtin.o' failed make: *** [builtin.o] Error 1 Ok, it couldn't find curses.h. Apparently it's not in the include path, so I hacked that: ln -s /usr/include/ncurses/curses.h /usr/include/ and I got this: g++ -g -O2 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-exceptions -Wall -DLOCALEDIR=\/usr/local/share/locale\ -DPREFIX=L\/usr/local\ -DDATADIR=L\/usr/local/share\ -DSYSCONFDIR=L\/usr/local/etc\ -DBINDIR=L\/usr/local/bin\-c -o builtin.o builtin.cpp In file included from builtin_set_color.cpp:15:0, from builtin.cpp:397: fallback.h:97:7: error: previous declaration of ‘char* tparm_solaris_kludge(char*, ...)’ with ‘C++’ linkage /usr/include/curses.h:820:63: error: conflicts with new declaration with ‘C’ linkage builtin: recipe for target `builtin.o' failed make: *** [builtin.o] Error 1 Looks bad - and I'm stuck here. Here's the gcc -v output - hope it helps: http://paste.ubuntu.com/5684749/ I'm willing to try out various builds and provide any debugging information needed if there's a chance of making Fish run under Cygwin. Thank you for your attention! :) _ Costin Caraivan -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Any chance for building/running Fish in Cygwin?
The python uk list have gone with the 'cool kids' and set the default return to be the list, but some people hate that. My diff is definitely a quick hack, thanks for making a better one Steve On Wed, May 22, 2013 at 9:48 PM, David Frascone d...@frascone.com wrote: Oops -- forgot to cc list. 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 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 +12,7 @@ Functions used for implementing the set_color builtin. #if HAVE_NCURSES_H #include ncurses.h #else -#include curses.h +#include ncurses/ncurses.h #endif #if HAVE_TERM_H diff --git a/expand.cpp b/expand.cpp index 74e5010..d45ab9c 100644 --- a/expand.cpp +++ b/expand.cpp @@ -18,7 +18,7 @@ parameter expansion. #include limits.h #include sys/param.h #include sys/types.h -#include sys/sysctl.h +//#include sys/sysctl.h #include termios.h #include dirent.h #include sys/stat.h diff --git a/fallback.h b/fallback.h index eba91be..9dd4709 100644 --- a/fallback.h +++ b/fallback.h @@ -93,8 +93,8 @@ int tputs(const char *str, int affcnt, int (*fish_putc)(tputs_arg_t)); work around this here. */ -#define tparm tparm_solaris_kludge -char *tparm_solaris_kludge(char *str, ...); +//#define tparm tparm_solaris_kludge +//char *tparm_solaris_kludge(char *str, ...); #endif when fish starts up there are a few error messages, but things seem to be mainly working. Thanks Steve On Wed, May 22, 2013 at 7:15 PM, Costin Caraivan costincarai...@gmail.com wrote: Hello there! I am one of those poor souls that are stuck in Windows. The reasons for this are not very important, but I'm here and I have to make do with whatever tools I have. Fish seems awesome but I saw no mention of a Windows (Cygwin port). I didn't know the difficulty of this task, so I set about to pass the first hurdle - compile Fish in Cygwin. So I went to this page: https://github.com/fish-shell/fish-shell/#building and I started installing the required dependencies. This is the final list of package installed: http://paste.ubuntu.com/5684738/ - I hope I have everything needed to build Fish. Anyway, I started the process: autoconf - OK ./configure - OK make - NOT OK make install - Didn't even reach this First error I got during make: g++ -g -O2 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-exceptions -Wall -DLOCALEDIR=\/usr/local/share/locale\ -DPREFIX=L\/usr/local\ -DDATADIR=L\/usr/local/share\ -DSYSCONFDIR=L\/usr/local/etc\ -DBINDIR=L\/usr/local/bin\-c -o builtin.o builtin.cpp In file included from builtin.cpp:397:0: builtin_set_color.cpp:15:20: fatal error: curses.h: No such file or directory compilation terminated. builtin: recipe for target `builtin.o' failed make: *** [builtin.o] Error 1 Ok, it couldn't find curses.h. Apparently it's not in the include path, so I hacked that: ln -s /usr/include/ncurses/curses.h /usr/include/ and I got this: g++ -g -O2 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-exceptions -Wall -DLOCALEDIR=\/usr/local/share/locale\ -DPREFIX=L\/usr/local\ -DDATADIR=L\/usr/local/share\ -DSYSCONFDIR=L\/usr/local/etc\ -DBINDIR=L\/usr/local/bin\-c -o builtin.o builtin.cpp In file included from builtin_set_color.cpp:15:0, from builtin.cpp:397: fallback.h:97:7: error: previous declaration of ‘char* tparm_solaris_kludge(char*, ...)’ with ‘C++’ linkage /usr/include/curses.h:820:63: error: conflicts with new declaration with ‘C’ linkage builtin: recipe for target `builtin.o' failed make: *** [builtin.o] Error 1 Looks bad - and I'm stuck here. Here's the gcc -v output - hope it helps: http://paste.ubuntu.com/5684749/ I'm willing to try out various builds and provide any debugging information needed if there's a chance of making Fish run under Cygwin. Thank you for your attention! :) _ Costin Caraivan -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Try
Re: [Fish-users] problem with virtualenv
. 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 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). Now I'm on Debian Sid with virtualenv-1.9.1 running fish-2.0, but still have the problem: gour@atmarama ~/p/p/django (master) virtualenv --no-site-packages tutorial New python executable in tutorial/bin/python Installing distribute...done. Installing pipdone. gour@atmarama ~/p/p/django (master) cd tutorial/ gour@atmarama ~/p/p/d/tutorial (master) . bin/activate fish: Illegal command name “}” /home/gour/prj/python/django/tutorial/bin/activate (line 37): } ^ in . (source) call of file “/home/gour/prj/python/django/tutorial/bin/activate”, called on standard input, fish: Could not locate end of block. The “end” command is missing, misspelled or a “;” is missing. /home/gour/prj/python/django/tutorial/bin/activate (line 78): if [ -n $BASH -o -n $ZSH_VERSION ] ; then ^ in . (source) call of file “/home/gour/prj/python/django/tutorial/bin/activate”, called on standard input, Is it known issue, something wrong with my setup or virtualenv + fish simply does not play well together? Sincerely, Gour -- The spirit soul bewildered by the influence of false ego thinks himself the doer of activities that are in actuality carried out by the three modes of material nature. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] problem with virtualenv
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...@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 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). Now I'm on Debian Sid with virtualenv-1.9.1 running fish-2.0, but still have the problem: gour@atmarama ~/p/p/django (master) virtualenv --no-site-packages tutorial New python executable in tutorial/bin/python Installing distribute...done. Installing pipdone. gour@atmarama ~/p/p/django (master) cd tutorial/ gour@atmarama ~/p/p/d/tutorial (master) . bin/activate fish: Illegal command name “}” /home/gour/prj/python/django/tutorial/bin/activate (line 37): } ^ in . (source) call of file “/home/gour/prj/python/django/tutorial/bin/activate”, called on standard input, fish: Could not locate end of block. The “end” command is missing, misspelled or a “;” is missing. /home/gour/prj/python/django/tutorial/bin/activate (line 78): if [ -n $BASH -o -n $ZSH_VERSION ] ; then ^ in . (source) call of file “/home/gour/prj/python/django/tutorial/bin/activate”, called on standard input, Is it known issue, something wrong with my setup or virtualenv + fish simply does not play well together? Sincerely, Gour -- The spirit soul bewildered by the influence of false ego thinks himself the doer of activities that are in actuality carried out by the three modes of material nature. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] bash/zsh compatibility helper?
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 'source ./chruby.sh; chruby_use' | . ``` Thanks Steve On Mon, May 13, 2013 at 1:36 PM, Maxim Gonchar gma...@gmail.com wrote: Hi, I have a script which is doing what you suggested: source env.sh source env.csh source env.csh If a file lacks extension you can use options --sh, --bash and --csh. If you use --ext it works in a bit different way: it execs a foreign shell which sources a file and then execs fish again. It was stable, but be careful, it can corrupt current environment if it fails. regards, Maxim On Mon, 13 May 2013 15:52:30 +0400, Michael Stillwell m...@beebo.org wrote: Is there any way to run bash/zsh scripts that set environment variables under fish? I was hoping there'd be a function that did something like: 1. Run printenv under fish, capture the output. 2. Run the script under bash, capture the output of printenv. 3. Diff the two printenv outputs, and run set commands within fish as appropriate. The script I'm especially trying to get working with fish at the moment is https://github.com/postmodern/**chruby/blob/master/share/** chruby/chruby.shhttps://github.com/postmodern/chruby/blob/master/share/chruby/chruby.sh but it's a somewhat general problem. Cheers, Michael --**--** -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_**d2d_mayhttp://p.sf.net/sfu/neotech_d2d_may __**_ Fish-users mailing list Fish-users@lists.sourceforge.**net Fish-users@lists.sourceforge.net https://lists.sourceforge.net/**lists/listinfo/fish-usershttps://lists.sourceforge.net/lists/listinfo/fish-users -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users source_compat.py Description: Binary data -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Fish shell hangs at startup
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 a out-of-space situation on my main startup disk (which is a SSD). So I deleted a bunch of files and now have ca 10 GB free, all good. Running OS X Mountain Lion. Not sure what Fish version I am running, as I have no means of testing it.. But it turns out that since that low-disk situation, I cannot start shells. Having tried with both iTerm2 and Terminal, the shell stars with the text Last login: Tue Apr 2 20:56:04 on ttys001, but then stops. Nothing at all happens. Same thing happens when ssh:ing into the machine. Did something in Fish become corrupt when disk space ran out? If so, maybe I should revert back to using the original shell as the default one? But how do I do that when I cannot start shells? Other ideas? Thanks, Goran -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Fish installation problem?
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 sanskritfr...@gmail.comwrote: On Mon, Sep 10, 2012 at 8:32 AM, Wai Yan Pong wypon...@gmail.com wrote: Could installing fish cause the problem? I sort of expecting the last complain since the fish I got is from github not from the Ubuntu repo. We are running out of ideas of what causes the problem. This is how fish is tipically installed: http://sprunge.us/ZjKL HTH -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] using autosuggestion word by word
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 at 1:00 PM, Hill, Richard D rich...@kingston.ac.ukwrote: Yeah that is preety annoying. -Original Message- From: Ali Vakilzade [mailto:ali.vakilz...@gmail.com] Sent: 03 September 2012 10:58 To: fish-users@lists.sourceforge.net Subject: [Fish-users] using autosuggestion word by word for example i want to enter this command: aptitiude install xyz when I enter apt the autosuggestion shows something like this: aptitiude remove abc I want to use the autosuggestion word by word I mean when i press right don't put the whole command, just put the first word (In my example aptitiude) (for using tab for apt: there are some other commands starting with apt like - apt-get, apt-key,...) -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users This email has been scanned for all viruses by the MessageLabs Email Security System. This email has been scanned for all viruses by the MessageLabs Email Security System. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] a query about uninstalling
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 you may need to logout and back in again, but that should restore your old shell Thanks Steve On Thu, Aug 30, 2012 at 1:41 PM, Guy Boanas guy.boa...@gmail.com wrote: Hi. I'd like to uninstall Fish and read the documentation first (!). I thought I'd follow advice given earlier in August to a user who was told If you're really offended by having it on your system, you can delete the following: /usr/local/share/fish/ /usr/local/ect/fish/ /usr/local/bin/fish* ~/.config/fish and I followed the above steps. But something has gone wrong and starting the terminal (OS X) just presents me with this message. login: /usr/local/bin/fish: No such file or directory [Process completed] I'd appreciate some help in solving this. --- GuyB -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Minimize, maximize, resizing escape sequences
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 undocking of the window. Basically, in bash I had the following aliases defined: alias dock='echo -ne \033[2t' alias lower='echo -ne \033[6t' alias raise='echo -ne \033[5t' alias 42x80='echo -ne \033[8;42;80t' alias maxh='echo -ne \033[8;0;80t' alias maxw='echo -ne \033[8;24;0t' Those aliases let me dock the terminal window, lower it, raise, and change its dimensions. This worked with both Apple's terminal and xterm. Is there any way to reproduce this behaviour using Fish? Thanks in advance Cheers Matthias Wiesmann -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] fish for embedded systems?
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. I was thinking that the multiline support and coloured syntax might be very nice for a front panel control. With the sensible syntax, users could even create their own function to control the instrument I am thinking of building. Any feedback would be appreciated-Patrick -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] passing a \n verbatim in a command substitution
[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 fish behave in the same way (if it doesn't already) when joining arrays, and therefore if you want to join arrays into a newline-separated string, it would just be a case of temporarily ensuring that \n was the first character of IFS Steve Stagg On Wed, Sep 21, 2011 at 3:24 PM, Robert Shinka k...@unknownlayer.net wrote: On Wed, Sep 21, 2011 at 10:36:41AM +0200, Jan Kanis wrote: On Wed, Sep 21, 2011 at 03:07, Robert Shinka [1]k...@unknownlayer.net wrote: In both fish-1.23.1 and the latest git, it does not work that way. set var a b c d (echo e\ \ f\ng) set | grep \^var var 'a' 'b ' 'c' 'd' 'e f' 'g' echo $var a b c d e f g Then my fish indeed works differently from yours. ~/temp cat fishtest.fish set var a b c d (echo e\ \ f\ng) set | grep \^var ~/temp . fishtest.fish var 'a' 'b' 'c' 'd' 'e f' 'g' I've attached the fishtest.fish to avoid mangling by mail programs. Does that indeed give different output on your machine? I'm running git master, commit id 157ca12. Version 1.23.1 (as tagged in git) works the same for me. No, it works as expected. I now recognize this as a locale issue: I was inadvertently inserting non-breaking space, which fish understandably did not interpret in the way I expected... please disregard. It's not necessary to keep track of that whitespace, and I would rather fish didn't (including in the example I gave above, which is just odd). What I expect 'set' to do is store each element passed to it as a separate element in an array: the same way it does now, except for that oddity in argument parsing (which should probably be fixed, but I'm uncertain of the reason for it). Then, when expanding that array, offer two expansion forms: $var, which passes each element as a separate argument the way it does now, and $var, which formats the contents into a single string, with each element separated from the next with a single \n character. In the case of output from a command, this could also be optimized to store the string directly, if desired, for a significant performance boost. Your 'myset' function would also work as expected given this behavior. Ah, so you're not proposing that $var gives back the *original* string, just that it joins the separate elements with \n instead of space. In the case of output returned from commands, it would be the same as the original string. In the case of values passed to set itself, or via appends to the array, there's really no reasonable definition for what the original string is, because the array is no longer formed from a single string: each item is interpreted as a new element, and we need those elements delimited by /something/ if we're going to concatenate. So, yes, just joining with \n gives the desired behavior. I agree with you that the $var syntax where var is an array is not very useful. At least I can't remember having used it with array variables. (I have for one-element variables, but your proposal won't change anything for those.) But I doubt your proposal will be that much of an improvement, once the (command) syntax is implemented. Are there any uses for it that are not covered by (command)? Yes, although it's primarily to make arrays useful in their own right. For instance, two equivalent sequences would be: set var a b c d e; echo $var[2 3 4] set var a\nb\nc\nd\ne; echo $var | head -n 4 | tail -n +2 Similarly, consider: set var[2] bravo set var (echo $var | head -n 1)\nbravo\n(echo $var | tail -n +3) If $var doesn't have that behavior, how do you do meaningful work with arrays? How do you get back a sane string representation after storing the result of a command that was split? The answer is the original (ugly and inefficient) hack given earlier. You could do everything that the either change would accomplish with some combination of head, tail, echo, sed, or extra variables and string concatenation, albeit in a more cumbersome and inefficient way. I would prefer we made both changes and saved users the frustration. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Fish-users mailing list Fish-users@lists.sourceforge.net
Re: [Fish-users] Strange behavior, maybe?
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 reference to double-check this. Steve On Mon, Jul 11, 2011 at 6:29 PM, David Frascone d...@frascone.com wrote: So, I have several related functions that I've been storing in ~/.config/fish/functions: CreateCase.fish ArchiveCase.fish HostifyCase.fish Which contain functions CreateCase, ArchiveCase, and HostifyCase, respectively. And, I thought it would be much simpler to combine all three functions into one file: CaseManagement.fish But, when I do that, the file does not seem to be sourced. (Probably since there is no command, CaseManagement). Is there a different way I should be cleaning up my functions? -Dave -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Strange behavior, maybe?
To confirm that, the user documentation states: A function definition file must have a filename consisting of the name of the function plus the suffix '.fish'. and then lower: It is very important that function definition files only contain the definition for the specified function and nothing else, otherwise it is possible that autoloading a function files requires that the function already be loaded, i.e. a circular dependency. so it looks like you're hitting expected behaviour. I've found that submitting to the funced and funcsave workflow is much easier than trying to manage those 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 contains one function that matches the file name. I didn't reply before because I didn't have the reference to double-check this. Steve On Mon, Jul 11, 2011 at 6:29 PM, David Frascone d...@frascone.com wrote: So, I have several related functions that I've been storing in ~/.config/fish/functions: CreateCase.fish ArchiveCase.fish HostifyCase.fish Which contain functions CreateCase, ArchiveCase, and HostifyCase, respectively. And, I thought it would be much simpler to combine all three functions into one file: CaseManagement.fish But, when I do that, the file does not seem to be sourced. (Probably since there is no command, CaseManagement). Is there a different way I should be cleaning up my functions? -Dave -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Axel on Github (Was: Fish Shell adoption / random comments)
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, Jul 8, 2011 at 12:31 AM, Patrick Mc(avery patr...@spellingbeewinnars.org wrote: Here is the link: https://github.com/liljencrantz He goes by his last name lijencrantz This is incredible, he is very much active, there is even a commit from today. I really wonder what could have happened, that he abandoned the fish project in such a way. This looks like he is pissed off by something. Or there are reasons beyond my understanding, after all he is probably a genius. -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] sudo vs fish - have to re-enter password
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. :) Try the current version(s). -Dave On Mon, Mar 7, 2011 at 9:25 AM, Myrddin Emrys myrd...@gmail.com wrote: I have to say that this has not been my experience. I am not using the latest fish however; I'm using the default version in the Ubunto repository. I have had no problems using sudo; it properly remembers and uses my password timeout. On Mon, Mar 7, 2011 at 09:58, Korek korek...@seznam.cz wrote: Hello, I have a problem with sudo vs fish when I use sudo, it asks me to enter password repeatedly, even thou I have sudo timeout set to 15 minutes. sudo works correctly under bash look at the following example: z@pc /t/zTemp ls a/ b/ z@pc /t/zTemp sudo ls [sudo] password for z: a b z@pc /t/zTemp sudo ls [sudo] password for z: a b z@pc /t/zTemp bash z@pc /tmp/zTemp $ sudo ls [sudo] password for z: a b z@pc /tmp/zTemp $ sudo ls a b fish, version 1.23.1 Any clues? thx -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] nmap -T4 192.168.1.* ...fish: No match for wildcard
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.* ^ (fish, version 1.23.1) -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Stupid PID question
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 Many examples add a -w 1 option to the nc which will terminate the proxy if no activity happens for 1 second, but this can cause some annoying dropouts sometimes. i.e.: ProxyCommand ssh gateway_machine nc -w 1 %h 22 Thanks Steve On Thu, Feb 24, 2011 at 6:33 PM, David Frascone d...@frascone.com wrote: On Thu, Feb 24, 2011 at 10:40 AM, Jan Kanis j...@jankanis.nl wrote: On Thu, Feb 24, 2011 at 05:41, Martin Bähr mba...@email.archlab.tuwien.ac.at wrote: On Thu, Feb 24, 2011 at 01:58:06AM +0100, Jan Kanis wrote: - A command like 'fish -c echo %self; exec ssh user@somewhere' will start a new shell that will echo it's own pid and then exec ssh (keeping the pid). it does not appear to keep the pid if i run ssh -f -N -q Apparently. The -f tells ssh to fork, giving it a new pid. The parent ssh that asks for passphrases and such keeps the pid, but then forks off a child to handle the rest of the connection and exits itself. Right -- I'm experimenting with the proxy commands . . . I'll post what I end up using. -Dave -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Stupid PID question
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 through an intermediary host to grab a file, sort of like this: ssh -f -N -q -L :dmz_machine_ip:22 user@intermediary_machine_ip scp -P transformers.avi user@localhost:. So, my question is: How can I grab the PID of that first ssh process, so I can kill it (and drop the tunnel) after the scp? Thanks in advance, Dave -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Multiline prompt?
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 wrote: Unfortunately you might need to stitch together some build instructions, with the website down and all... a mirror of the main website (without the wiki) is up at fishshell.com build instructions should be part of the source though... greetings, martin. -- cooperative communication with sTeam - caudium, pike, roxen and unix services: debugging, programming, training, linux sysadmin, web development -- pike programmer working in china community.gotpike.org foresight developer (open-steam|caudium).org foresightlinux.org unix sysadmin iaeste.at realss.com Martin Bähr http://www.iaeste.at/~mbaehr/ is.schon.org -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] occasional segmentation fault
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 fixing the problem. Steve Stagg On Dec 17, 2009 1:23pm, Goran Josic goran.jo...@usi.ch wrote: Dec 17 14:18:20 infinity kernel: fish[16467]: segfault at 1 ip b763ddc0 sp bffea620 error 4 in libc-2.11.1.so[b75c1000+141000] Dec 17 14:18:20 infinity kernel: fish[14771]: segfault at 0 ip 08071973 sp bfc363a0 error 4 in fish[8048000+54000] The second row is a new error output. Am I the only one in the world having this problem? ** On 11/12/09 13:53, Goran Josic wrote: I tried to recompile the fish shell on my system guessing the problem could be solved this way. That didn't solved the problem but i have a different message in /var/log/messages.log Dec 11 13:45:59 infinity kernel: fish[30003]: segfault at 20 ip b761e7e0 sp bffcb9b0 error 4 in libc-2.11.so[b75a2000+14] I am at disposal for other information if needed. OT: There isn't much life on this mailing list so I was wondering if fish shell project is still active? On 08/12/09 03:02, Josic Goran wrote: Hi, I have an occasional segmentation fault. Sometimes when my terminal emulator running fish shell receives the focus just crashes. I'm running Archlinux with these packages: Xfce terminal 0.4.2-1 vte 0.22.5-1 glibc 2.11-1 kernel26 2.6.31.6-1 here is an extract from /var/log/messages.log file: Dec 6 00:59:33 cube kernel: fish[9019]: segfault at 0 ip 7f5ac980 sp 7fff1e9acdf8 error 4 in libc-2.11.so[7f5a88807000+14d000] Dec 6 20:45:37 cube kernel: fish[16001]: segfault at 0 ip 7fc6c6a36888 sp 7fff44478eb8 error 4 in libc-2.11.so[7fc6c69b1000+14d000] Dec 6 22:10:44 cube kernel: fish[2632]: segfault at 0 ip 7f0b1c957980 sp 7fff4d449408 error 4 in libc-2.11.so[7f0b1c8d2000+14d000] Dec 6 22:14:37 cube kernel: fish[3427]: segfault at 0 ip 7fa47ffb2980 sp 7fff9a774908 error 4 in libc-2.11.so[7fa47ff2d000+14d000] Dec 6 22:49:37 cube kernel: fish[4891]: segfault at 0 ip 7fe574adb980 sp 78d600e8 error 4 in libc-2.11.so[7fe574a56000+14d000] If you need other information I will be happy to provide it. Regards Goran . -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users . -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] key binding
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 one thing which I really want to change and am struggling with. The default behaviour of the up arrow key I find somewhat counterintuitive for me and would wish to remove the history-token searching from up/down arrow and make them simply traverse the history list. I'd then like to bind them to pageup/pagedown but I managed to do that already. I've tried numerous bind commands to remove the function history-token-search-backward/forward but for whatever reason I can't get them to unbind. Any help would be appreciated. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] how to kill current process in 1 easy step
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, 2009 8:49am, Radu Benea kitanat...@gmail.com wrote: Hi, I've been a bash user for quite a while and whenever I don't want history saved for the current terminal I'm used to killing it with kill -9 0 which in bash terminates the process kill was started from also tries kill -9 $$ - without luck but in fish it attempts to kill 1 (which is init) any suggestions? -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] feature request / discussion
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 -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] mimedb
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 old-fish/mimedb.c new-fish/mimedb.c 582,583c582,584 */ while( !regexec(start_re, start, 1, match, 0) ) --- */ int recurse_limit = 1000; while( !regexec(start_re, start, 1, match, 0) --recurse_limit) btw. Fish is a great shell. Thanks for releasing it :) Stephen Stagg - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users