[Fish-users] Non-orthogonal builtins?

2017-05-31 Thread Philip Ganchev
Hi all! Why were 'test' and 'echo' made builtins when we have the external commands? -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot

Re: [Fish-users] fish as a first programming language

2016-01-26 Thread Philip Ganchev
Patrick, I think a shell has some advantages as an introduction to programming and computing, and Fish is designed to be simple and consistent. Good luck and keep us posted about how it goes! On Tue, Jan 26, 2016 at 4:33 AM, Patrick wrote: > Hi Siteshwar > > Thanks for your post and I received a

Re: [Fish-users] History search behaviour

2015-12-14 Thread Philip Ganchev
Is this correct? I get a different behavior with Fish 2.2.0: echo test_string # echo # ^P replaces the command line to: set_color white; echo hello # Something from my distant history that does not appear in the output of the command 'history'. On Fri, Dec 11, 2015 at 8:08 AM, Peter Flood wr

Re: [Fish-users] wishlist history and search

2014-04-20 Thread Philip Ganchev
Also, maybe up-arrow should also match directory history? On Sun, Apr 20, 2014 at 4:14 AM, Philip Ganchev wrote: > So if the user enters text and presses up-arrow, Fish should match > input words as substrings of commands in history. If it finds a > matching command, Fish will su

Re: [Fish-users] wishlist history and search

2014-04-19 Thread Philip Ganchev
So if the user enters text and presses up-arrow, Fish should match input words as substrings of commands in history. If it finds a matching command, Fish will suggest the command and the directory where it was executed. The user can: 1. Press Enter to execute the command in the search directory, o

Re: [Fish-users] Excessive file completion

2013-06-17 Thread Philip Ganchev
I think the suggestions should not include the part that is already entered. No need for configuration. On Mon, Jun 17, 2013 at 1:12 PM, Ilya Kulakov wrote: > Hi > > Whenever I try to complete file or dir names, fish prints suggestions which > include part of the path I've already entered. > E.g.

Re: [Fish-users] Refreshing ~/.config/fish/config.fish

2013-05-25 Thread Philip Ganchev
The '.' (dot) built-in is what you are looking for. On Saturday, May 25, 2013, charlie wrote: > Wish I had asked this earlier, I've been looking for a replacement for 'source' for a long time now. > > On Sat, May 25, 2013 at 8:32 AM, dag.odenh...@gmail.com < dag.odenh...@gmail.com> wrote: >> >> .

Re: [Fish-users] Shell Completion

2012-12-08 Thread Philip Ganchev
Fish's highlighting of incorrect commands could be better if it highlighted the characters where the command differs from the closest recognized command, This could be from left to right, or some more sophisticated matching algorithm like smallest string manipulation. Use a simple algorithm if the

Re: [Fish-users] from bash to fish

2012-10-22 Thread Philip Ganchev
You need to convert each of the Bash commands in your ~/.bashrc script to a Fish command, and put it in your fish initialization script. Instead of 'export', use 'set -U'. Instead of '[', use 'test'. Instead of the 'fi' keyword, use the 'end' keyword. Instead of defining aliases, define functions,

Re: [Fish-users] Amphersand background statement

2012-07-20 Thread Philip Ganchev
On Fri, Jul 20, 2012 at 10:51 AM, Steven Hum wrote: > I posted this in the github issues and don't mean to double post, but if > "...statement...&" is intended only to work for simple commands, e.g. > > sleep 10s&; sleep 3s&; sleep 6s& > > (silly example, I know!) then I can close the ticket as th

Re: [Fish-users] fish_fish

2012-05-31 Thread Philip Ganchev
On Thu, May 31, 2012 at 12:14 AM, ridiculous_fish wrote: > > On May 30, 2012, at 1:17 PM, Maxim Gonchar wrote: > [...] > 4. I think fish is doing the right thing with "false ; and sdlkfjsdklf". > That semicolon means that the 'and' is the beginning of a new statement, and > fish agrees with other

Re: [Fish-users] (Was: Current state of fish in gitorius)

2012-03-28 Thread Philip Ganchev
rompt, to show context, messages or automatic completion suggestions automatically, as you type. That would allow to make shell features more discoverable, show spelling corrections and other things. Philip --

Re: [Fish-users] (Was: Current state of fish in gitorius)

2012-03-27 Thread Philip Ganchev
Hi Raphael, How would you like Fish to do completion? Philip On Tue, Mar 27, 2012 at 2:49 AM, raphael rsc wrote: > hi, > > as the way completion is done with fish is something that prevents me > to adopt it fully, I was wondering if someone had worked on other > completion mode

Re: [Fish-users] Editing long function

2011-11-07 Thread Philip Ganchev
w > to do it? > Or can it be fixed? > > regards, > Maxim That's something that was decided Axel, the legendary developer of Fish, because he did not want to write ugly code that wraps lines. But that would be better UI, so anyone who knows

Re: [Fish-users] ls problem

2011-09-29 Thread Philip Ganchev
f "GNU ls", you can do: ls -d1 --indicator-style=none Regards, Philip -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, securit

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

2011-09-19 Thread Philip Ganchev
On Mon, Sep 19, 2011 at 6:06 PM, Robert Shinka wrote: > On Mon, Sep 19, 2011 at 04:18:18PM +0300, Philip Ganchev wrote: >> On Mon, Sep 19, 2011 at 1:47 AM, Robert Shinka wrote: >> > On Sun, Sep 18, 2011 at 09:20:21PM +0200, Jan Kanis wrote: >> >> >>  Bash trea

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

2011-09-19 Thread Philip Ganchev
On Mon, Sep 19, 2011 at 1:47 AM, Robert Shinka wrote: > On Sun, Sep 18, 2011 at 09:20:21PM +0200, Jan Kanis wrote: >>  Bash treats command substitution and variable expansion as a list of >>  whitespace separated tokens. It also includes escapes to treat both as a >>  single token, in case you do

Re: [Fish-users] moving forward, what needs to be done

2011-07-13 Thread Philip Ganchev
OK good. Then what's wrong with the current Fish logo? On Wed, Jul 13, 2011 at 7:13 PM, Terin Stock wrote: My beef with the ASCII art is that it doesn't seem all that friendly, in > reality quiet the opposite. Hackers and programmers (arguably one in the > same) like ASCII art, but not your ave

Re: [Fish-users] moving forward, what needs to be done

2011-07-13 Thread Philip Ganchev
little thing to have >> on, perhaps, the first prompt shown on a new terminal (not every prompt, >> just the first). >> >> On Tue, Jul 12, 2011 at 22:21, Philip Ganchev wrote: >> >>> One more try. >>> >>> >>> <*)~>< >

Re: [Fish-users] moving forward, what needs to be done

2011-07-12 Thread Philip Ganchev
One more try. <*)~>< On Fri, Jul 8, 2011 at 8:59 PM, Patrick Mc(avery < patr...@spellingbeewinnars.org> wrote: > Hi Philip > > I like the gills on this one, > > <*)>< > > -Patrick > > > On 11-07-08 07:56 PM, Philip Ganchev wrote: >>

Re: [Fish-users] moving forward, what needs to be done (was: Axel (Was: Fish Shell adoption)

2011-07-10 Thread Philip Ganchev
Agreed. And I would suggest that we register fishshell.org when its old registration expires on September 18 (see http://whois.domaintools.com/fishshell.org). We are not a .com, after all. On Sat, Jul 9, 2011 at 9:36 PM, Robert Shinka wrote: > https://gitorious.org/fish-shell indicates that the w

Re: [Fish-users] moving forward, what needs to be done

2011-07-08 Thread Philip Ganchev
can use other ASCII art: <*)>< <@>< <*~>< Cheers, Philip On Fri, Jul 8, 2011 at 3:33 PM, Patrick Mc(avery wrote: > Hi Terin, hi List > > I am afraid I don't know enough ruby to help. > > If Axel is done with us should we create another fish logo? I doubt he > trademar

Re: [Fish-users] fish and scp wildcards

2011-07-07 Thread Philip Ganchev
localdir > or > scp user@server:"dir/file\*" localdir > or > scp "user@server:dir/file\*" localdir [...] You can either escape the wildcard or quote it: scp user@server:dir/file\* locadlir or scp user@server:dir/"file*" localdir or scp user@server:dir

Re: [Fish-users] Fish Shell adoption / random comments

2011-07-07 Thread Philip Ganchev
s cleaner than POSIX shell syntax and lets do anything that you can do in POSIX shells. Regards, Philip -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of

Re: [Fish-users] Fish Shell adoption / random comments

2011-07-05 Thread Philip Ganchev
e at night but I may have some other > perspectives/resources that might contribute something, I hope so, it's > seems like a wonderful project-Patrick Looking forward to your contributions! Regards, Philip -- A

Re: [Fish-users] question about the order of command substitutions and variable expansions

2011-02-20 Thread Philip Ganchev
On Sat, Feb 19, 2011 at 12:45 PM, weakish wrote: > In fish's user doc (section "Combining different expansions"): > >> When combining multiple parameter expansions, expansions are performed >> in the following order: >> >>   * Command substitutions >>   * Variable expansions > > So command substit

Re: [Fish-users] Fish sucks (but your shell sucks more)

2010-12-22 Thread Philip Ganchev
te: > The points are valid, if presented in a combatative manner. I don't think > it's a silly article. > > On Wed, Dec 22, 2010 at 23:00, Philip Ganchev > wrote: >> >> On Wed, Dec 22, 2010 at 11:30 PM, Terin Stock >> wrote: >> > Just in cased you

Re: [Fish-users] Fish sucks (but your shell sucks more)

2010-12-22 Thread Philip Ganchev
On Wed, Dec 22, 2010 at 11:30 PM, Terin Stock wrote: > Just in cased you all missed it: > http://markhansen.co.nz/fish-sucks/ > Discussion? Thanks, Terin. The article itself is shallow and silly, but any publicity is good publicity, right?

Re: [Fish-users] add to end of env variable array

2010-12-13 Thread Philip Ganchev
On Mon, Dec 13, 2010 at 2:10 AM, i...@whywouldwe.com wrote: > Is there a way to add to the end of an > environment variable that is an array > without explicitly specifying the index? set -Ux PATH $PATH /some/path [...] >     set -Ux PATH[-1] /some/path > > will change the last element but > >  

Re: [Fish-users] Running fish_indent on all fish functions.

2010-12-05 Thread Philip Ganchev
code that has tokens separated by spaces. You can certainly find shell script code that omits the spaces before or after the redirection symbols, but I think that's just sloppiness and poor style; there is no good reason for it. [...] Philip

Re: [Fish-users] Key binding to append "--help" to command line

2010-12-01 Thread Philip Ganchev
this go into fish-next? > > -- > Cheers, > Grissiom I think it should go into some kind of "extras" place, maybe the wiki; but not in the main Fish code because I don't think it's a central feature. Philip

Re: [Fish-users] Login/startup problem

2010-12-01 Thread Philip Ganchev
on. I would try to figure out where function "my_keybindings" is being called and comment out the call, to see if it stops the error messages. Another strategy to try is to copy parts of ~/.config/fish/ until you find the offending file. Sorry, I don't have too much time to help rig

Re: [Fish-users] Sharing completion scripts

2010-11-28 Thread Philip Ganchev
On Sun, Nov 28, 2010 at 4:58 PM, SanskritFritz wrote: > On Wed, Nov 24, 2010 at 7:11 PM, SanskritFritz > wrote: >> >> My question is, do you really want to include completions for such very >> rare scripts like shoutcast-search as well? > > I have another question as well: if you check ln.fish fo

Re: [Fish-users] A more robust help function

2010-11-28 Thread Philip Ganchev
Hi James, Awesome! That's quite elaborate, and I think most of that is very useful. Thanks for all the work! On Sat, Nov 27, 2010 at 5:33 PM, James Bowlin wrote: [...] > NOTES: [...] > I used an ugly kludge to print out a list of all the browsers we > looked for.  I create a temporary directory

Re: [Fish-users] Removing dependence on htmlview in help.fish

2010-11-26 Thread Philip Ganchev
Should the message for x-www-browser also mention "x-www-browser" (and similarly for www-browser)? 'hep: Help is being displayed in x-www-browser, your default browser: %s' For symlinks, we could use the program namei (if it exists) to check the last target in a chain of sy

Re: [Fish-users] Use of alt + arrow keys for dir history and forward/backward word

2010-11-24 Thread Philip Ganchev
I agree that Ctrl+Left and Ctrl+Right are more customary for moving forward/backward by 1 word, and Fish should be usable on the console. That should be the default key combo on Fish. I don't see the argument against Alt+Up, Alt+Down for moving through history words. Philip On Wed, N

Re: [Fish-users] Current state of fish in gitorius

2010-11-23 Thread Philip Ganchev
ist from a long time ago: http://fishshell.org/user_doc/index.html#todo I also have other ideas for improvements, which are in the mailing list archives but are not summarized anywhere. We should probably make a wiki page with suggestions. Philip -

Re: [Fish-users] Fish with no 'source' command?

2010-10-09 Thread Philip Ganchev
The command is ".' (dot) http://fishshell.org/user_doc/commands.html#source It does not do both "." and "source" because Fish is intended to have a small set of features that do different things (the Law of Orthogonality: http://fishshell.org/user_doc/design.html ) But maybe the documentation fo

Re: [Fish-users] fish developing

2010-10-06 Thread Philip Ganchev
Is this the sort of thing you mean? http://fishshell.org/doc2/pages.html http://fishshell.org/doc2/annotated.html http://fishshell.org/doc2/files.html On Wed, Oct 6, 2010 at 11:37 AM, Nima Sahraneshin wrote: > Hi > > > I am looking for a technical documen of fish for developing it . Can > you

Re: [Fish-users] Globbage?

2010-06-04 Thread Philip Ganchev
On Sat, Jun 5, 2010 at 1:06 AM, Martin Bähr wrote: > On Fri, Jun 04, 2010 at 05:31:43PM +0300, Beni Cherniavsky-Paskin wrote: >> (B) there should be an easy one-press way to quote the current wildcard. >>    Maybe pressing TAB on an unmatched wildcard should quote it? > > a slight problem with thi

Re: [Fish-users] Globbage?

2010-06-04 Thread Philip Ganchev
I love the idea of interactive globbing! -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http:

Re: [Fish-users] help in OSX

2010-04-04 Thread Philip Ganchev
The problem is more general. For example, on Linux where "help" is configured to use w3m: ~> help complete w3m: Can't load file:///usr/share/doc/fish/builtins.html#complete. ~> ls /usr/share/doc/fish/builtins.html ls: cannot access /usr/share/doc/fish/builtins.html: No such file or directory ~> w3

Re: [Fish-users] Uniquely add to path?

2010-04-03 Thread Philip Ganchev
On Fri, Apr 2, 2010 at 7:28 PM, David Frascone wrote: > I like the third function . . .. but I'd do a -d $x, since it should be a > directory :) Sure. Also, the test should be "contains $x $PATH". And the test should be done with two if-statements. ---

Re: [Fish-users] Uniquely add to path?

2010-04-02 Thread Philip Ganchev
On Thu, Apr 1, 2010 at 9:46 AM, David Frascone wrote: > > There's a really cool feature in zsh that allows you to uniquely add a > string to the path, if it did not exist before: > > typeset -U path > > This makes all items in path have to be unique, so then, if you do: > > path=(/foo/bin $path) >

Re: [Fish-users] Temporary functions?

2010-04-02 Thread Philip Ganchev
On Thu, Apr 1, 2010 at 10:08 AM, David Frascone wrote: > > I'd like to add a function to my config.fish to do some things over and over [...] > But, I don't want this function to exist after config.fish is done.  Should > I just erase it before the end of my config.fish: > > functions -e add_to_pa

Re: [Fish-users] Does anyone use fish as their #1 shell (OS/X)?

2010-03-30 Thread Philip Ganchev
On Tue, Mar 30, 2010 at 3:48 PM, David Frascone wrote: > Ok -- let's start slow -- my aliases need to be recreated -- which is fine. It's better to write functions than use "alias". "alias" is a sort of a crutch; in Fish, it's a function that creates a simple function for you, but functions in ge

Re: [Fish-users] Fish compatibility with other shells?

2010-03-25 Thread Philip Ganchev
The Fish wiki has a short page about this.[1] Feel free to expand it. Yes, in Bash, variables are set using "export", not "set"; see the Bash manual page, section "Shell Builtin Commands". [1] http://fishshell.org/wiki/moin.cgi/BashToFish On Thu, Mar 25, 2010 at 11:44 AM, chombee wrote: > Is the

Re: [Fish-users] Bookmarking directories a la IPython?

2009-10-15 Thread Philip Ganchev
y. Of course, you can write a bookmark function that works on any file, but it still requires that you remember to save the bookmark explicitly. And maybe it should be interactive, i.e. it should show where the it's going to cd before it cd's. Regards, Philip

Re: [Fish-users] fish project homepage

2009-10-07 Thread Philip Ganchev
On Wed, Oct 7, 2009 at 12:56 PM, the jimmybot wrote: > ... is there anywhere one > might find or share custom fish completions or nice little functions / > scripts? There was a wiki with completions and functions. I think it was on the fishshell.org site.

Re: [Fish-users] Fish doesn't expand "~" in environment variables

2009-10-05 Thread Philip Ganchev
t this command inside ~/.config/fish/functions/config_interactive.fish : functions --erase pwd Or, redefine the function pwd, by creating and editing the file ~/.config/fish/functions/pwd.fish . Cheers, Philip -- Com

Re: [Fish-users] Fish doesn't expand "~" in environment variables

2009-09-17 Thread Philip Ganchev
Fish expands "~" when you access the variable, so why confusion and why unnecessary typing? On Thu, Sep 17, 2009 at 11:04 AM, Ken Kinder wrote: > In Bash, when you set an environment variable to "~/foo", the shell > automatically expands your home directory. However in fish, if you use the > set

Re: [Fish-users] Possible Bug and question.

2009-08-09 Thread Philip Ganchev
On 2009-08-09, Daniel Baucom wrote: > Question: > Is there an easier way to have fish reload the conf file than doing an: > exec fish ? [...] . ~/.config/fish/fish.config The "dot" builtin is the equivalent to "source". ---

Re: [Fish-users] BUG: 100% CPU usage when used as login shell

2009-08-07 Thread Philip Ganchev
On Fri, Aug 7, 2009 at 5:29 PM, Ken Kinder wrote: > Hi. I searched the mailing list and saw this post: > > http://www.mail-archive.com/fish-users@lists.sourceforge.net/msg02151.html > > I thought I would confirm the same bug, and the same solution. :( What was a call to alias that didn't work and

Re: [Fish-users] Color Question

2009-08-05 Thread Philip Ganchev
ou need to define a function in file ~/config/fish/functions/fish_prompt.fish . Philip -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deploym

Re: [Fish-users] BUG: 100% CPU usage when used as login shell

2009-07-17 Thread Philip Ganchev
On Fri, Jul 17, 2009 at 3:55 PM, Alex Griffin wrote: > When I try to use fish as my default login shell, fish uses 100% CPU > before I even get to a prompt (although it does show the greeting). > This doesn't happen when I use fish in any other context. I realize > you probably need more informatio

Re: [Fish-users] Clueless about error with complete

2009-06-18 Thread Philip Ganchev
On Thu, Jun 18, 2009 at 11:23 AM, Michel Martens wrote: > Gentlemen: > > ~/Source: cd ../Code > ~/Code: cd - > fish: complete: Command only available in interactive sessions > fish: complete: Command only available in interactive sessions > fish: complete: Command only available in interactive sess

Re: [Fish-users] set with arrays, functions emitting arrays

2009-06-17 Thread Philip Ganchev
On Wed, Jun 17, 2009 at 2:44 PM, James Aguilar wrote: > On Tue, Jun 16, 2009 at 19:55, Philip Ganchev > wrote: [...] > This is the closest to what I want.  Is there any way to get something like > this: > >> for var in [something]; echo $var[1] "->" $var[2]; end

Re: [Fish-users] set with arrays, functions emitting arrays

2009-06-16 Thread Philip Ganchev
A for loop iterates over a one-dimensional array: > for var in val1 val2 val3; ...; end A pattern can be constructed using braces: > for var in {1,2}:{a,b}; echo $var; end 1:a 2:a 1:b 2:b An array of arrays can be created and accessed lik

Re: [Fish-users] strange binding problem

2009-02-02 Thread Philip Ganchev
On Sun, Feb 1, 2009 at 10:39 AM, Axel Liljencrantz wrote: > > > 2009/1/14 Philip Ganchev >> ... >> Actually, none of these commands work for me as you typed them. >> According to the help, they should be: >> >> bind '"\C-p": history-se

Re: [Fish-users] BUG: Autocompletation files with '=' and '{'

2009-01-28 Thread Philip Ganchev
On Tue, Jan 27, 2009 at 8:51 AM, wrote: ... > When I press tab to autocomplete a filename with '=' or '{' in its name the > fish console hangs. It happends in gnome gterminal and in the text conlose. ... > I'm running fish 1.23.0-5 on Ubuntu-8.10 x64 installed from ubuntu's > repository. Can't

Re: [Fish-users] mimedb bug fix and fish on github

2009-01-16 Thread Philip Ganchev
James, Thank you for all your work! Maybe you should ask Axel for control of the repository and the web page. That way it might be a little less confusing to newcomers. On Fri, Jan 16, 2009 at 2:08 PM, James Reeves wrote: ... > Since Fish seems not to be actively maintained, I've also converted

Re: [Fish-users] strange binding problem

2009-01-13 Thread Philip Ganchev
On Mon, Jan 12, 2009 at 8:03 AM, Goran Josic wrote: > Hi guys, > > I have a strange problem. > I used google but didn't found any useful information. > > In my .config/fish/config.fish I have: > > bind \cp history-search-backward > bind \cn history-search-forward > > bind \e. history-token-search-

Re: [Fish-users] wildcard ** makes fish shell freeze

2009-01-02 Thread Philip Ganchev
Hi, Goran On Thu, Jan 1, 2009 at 2:48 PM, Josic Goran wrote: ... > I don't know if this is a bug or not but when I type ** the fish shell > freezes. That's strange. It does not do that for me. It does this, and what I would expect: > ** fish: Illegal command name "**" > fish --version fish, ver

Re: [Fish-users] help binding keys

2008-12-28 Thread Philip Ganchev
On Sun, Dec 28, 2008 at 4:04 PM, Sy Ali wrote: ... > problem 1: > > I don't seem to be able to bind the way I expect. Example: > >> bind -k home beginning-of-line >> test string >> test string[1~ It seems the named keys do not work when the corresponding character sequence is bound to something

Re: [Fish-users] is it possible to search the beginning of a a command like it matlab?

2008-11-05 Thread Philip Ganchev
On Wed, Nov 5, 2008 at 10:59 AM, Abe Bachrach <[EMAIL PROTECTED]> wrote: [...] > reason for the change I made is so that it makes searching after you only > enter a single letter useful. I guess it would work as you describe. It should not be too confusing, because if you want something more spec

Re: [Fish-users] is it possible to search the beginning of a a command like it matlab?

2008-11-03 Thread Philip Ganchev
Thanks, Abe. Without having played with it, I also would think that this algorithm would be confusing for users. The relevance score may be a nice idea, though it is arguably even more complicated. I seem to recall that we once discussed using the position of the cursor as an indicator; if the c

Re: [Fish-users] find exit code

2008-10-09 Thread Philip Ganchev
Couldn't the parsing be more sensitive to the possible errors, thus avoiding a second pass? For example, if '$' is followed by an illegal character, check which character that is; if it's "!", print an error message like " The '$' character begins a variable name. The character '!', which directl

Re: [Fish-users] last argument of previous command

2008-09-30 Thread Philip Ganchev
On Tue, Sep 30, 2008 at 8:37 PM, Myrddin Emrys <[EMAIL PROTECTED]> wrote: > Suraj N. Kurapati wrote: >> What is the equivalent of csh's "!$" expression (which evaluates to >> the last argument of the previous command) in fish? > > I'm curious... I can understand the need to retrieve the previous >

Re: [Fish-users] something identical to bash's !$

2008-08-30 Thread Philip Ganchev
Press Alt+UpArrow repeatedly until you get the word you need in the buffer. On Sat, Aug 30, 2008 at 3:43 AM, Alex Greif <[EMAIL PROTECTED]> wrote: > I am completely new to fish and missing the good old history > abbreviations lile !$ > Is there a way to simulate this behavior? ---

Re: [Fish-users] making fish scripts exit on unexpected errors?

2008-06-28 Thread Philip Ganchev
On Thu, Jun 26, 2008 at 1:45 AM, Dwayne C. Litzenberger <[EMAIL PROTECTED]> wrote: > In POSIX shells (including bash), you can do something like this: > > #!/bin/sh > set -e > false # The shell will exit with a non-zero status here > echo 'This will never get executed' > > Is anything simi

Re: [Fish-users] argh

2008-06-27 Thread Philip Ganchev
On Thu, Jun 26, 2008 at 4:37 PM, Beni Cherniavsky [...] > [EMAIL PROTECTED] ~> if true > echo long long long long long > long long long long long long long long long lon > g long long long long long long [...] I think this would be better until we are able to lobby for terminals

Re: [Fish-users] argh

2008-06-23 Thread Philip Ganchev
It would be nice if the terminal could display newlines visibly so that ellipses would not be necessary. But even without that, I prefer lines to be broken without ellipses. - Check out the new SourceForge.net Marketplace. It

Re: [Fish-users] environment variables and arrays

2008-06-17 Thread Philip Ganchev
On Tue, Jun 17, 2008 at 2:50 AM, David Bremner <[EMAIL PROTECTED]> wrote: >>>>>> "Philip" == Philip Ganchev <[EMAIL PROTECTED]> writes: >Philip> Perhaps it should only convert >Philip> variables it knows should be converted, like PA

Re: [Fish-users] environment variables and arrays

2008-06-16 Thread Philip Ganchev
On Mon, Jun 16, 2008 at 9:01 AM, David Bremner <[EMAIL PROTECTED]> wrote: > The automatic conversion of environment variables containing ':' into > arrays seems to be not so great to me. In particular it leads to mystifying > experiences like the following. [...] >From a practical point of view thi

Re: [Fish-users] Bug with help command

2008-06-14 Thread Philip Ganchev
. For now there is the BROWSER environment variable, and users can always redefine the "help" script. Regards, Philip - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell serv

[Fish-users] defining key bindings

2008-06-09 Thread Philip Ganchev
I'm trying to define a key binding in my configuration. The only thing mentioned in the documentation is to use the "bind" command. But if you do that in my user "config.fish" or "config_interactive", it does not take effect. It only works if I define a new function that calls function "fish_defa

Re: [Fish-users] exec $VALUE doesn't work

2008-06-06 Thread Philip Ganchev
On Fri, Jun 6, 2008 at 7:51 PM, Martin Bähr <[EMAIL PROTECTED]> wrote: > On Fri, Jun 06, 2008 at 07:08:26PM -0400, Philip Ganchev wrote: >> On Fri, Jun 6, 2008 at 12:50 AM, Martin Bähr >> <[EMAIL PROTECTED]> wrote: >> > On Thu, Jun 05, 2008 at 05:54:05PM -0400

Re: [Fish-users] exec $VALUE doesn't work

2008-06-06 Thread Philip Ganchev
On Fri, Jun 6, 2008 at 12:50 AM, Martin Bähr <[EMAIL PROTECTED]> wrote: > On Thu, Jun 05, 2008 at 05:54:05PM -0400, Philip Ganchev wrote: >> On 6/2/08, Piotr Husiatyński <[EMAIL PROTECTED]> wrote: >> > var=$(dmenu_path | dmenu); exec $var >> functio

Re: [Fish-users] weird things happen in output redirects

2008-06-05 Thread Philip Ganchev
On 6/5/08, Isaac Dupree <[EMAIL PROTECTED]> wrote: > > in that case I'd rather mention "" (expanded from (echo -n)) > or anyway mention both the value and the expression, for best > understanding, somehow. I agree about the principle, but the wording has to be simple. > BTW. newline is technicall

Re: [Fish-users] weird things happen in output redirects

2008-06-05 Thread Philip Ganchev
On 6/5/08, Isaac Dupree <[EMAIL PROTECTED]> wrote: > Philip Ganchev wrote: >> I guess what's confusing is the talk about token types, which is are >> apparently something specific to Fish and not explained in the manual. >> Why doesn't the message just

Re: [Fish-users] "default browser"?

2008-06-05 Thread Philip Ganchev
On 6/5/08, Frederik 'Freso' S. Olesen <[EMAIL PROTECTED]> wrote: > Isaac Dupree skrev: >>[...] Now I tried "help function" like >>it told me to, since function --help doesn't work, and not only did it >>shuffle me off to a graphical application -- but to Konqueror, even >>though I'm running GNOME w

Re: [Fish-users] weird things happen in output redirects

2008-06-05 Thread Philip Ganchev
I guess what's confusing is the talk about token types, which is are apparently something specific to Fish and not explained in the manual. Why doesn't the message just say fish: Expected redirection specification, got "\n" (newline) echo > (echo) ^ or fish: Invalid file name "" for outp

Re: [Fish-users] exec $VALUE doesn't work

2008-06-05 Thread Philip Ganchev
On 6/2/08, Piotr Husiatyński <[EMAIL PROTECTED]> wrote: [...] > var=$(dmenu_path | dmenu); exec $var [...] That can be translated as: function temp_func; dmenu_path | dmenu; end temp_func functions -e temp_func More verbose, but perhaps clearer. If I recall correctly, the reason for disallo

Re: [Fish-users] unfortunate command-line effects

2008-05-30 Thread Philip Ganchev
On Fri, May 30, 2008 at 9:52 AM, Isaac Dupree <[EMAIL PROTECTED]> wrote: > I hate it! Frequently when I'm using fish and editing something e.g. > from my history, it will disappear and I can't get it back! Sometimes > it will mysteriously turn purple and then I have no choice but to keep What di

Re: [Fish-users] Environmental Variables

2008-05-26 Thread Philip Ganchev
On Mon, May 26, 2008 at 11:16 AM, Sorin Ionescu <[EMAIL PROTECTED]> wrote: > Hello, > > Should not something like this be in the global config.fish? [...] I think those scripts are useful for converting your init scripts to Fish, but why do every time you log in? Just do it when you install Fish.

Re: [Fish-users] Bazaar completion

2008-05-18 Thread Philip Ganchev
I found a Zsh completion script - would that help to create a Fish one? _baz Description: Binary data - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com

Re: [Fish-users] API for completion

2008-04-14 Thread Philip Ganchev
On Sat, Apr 12, 2008 at 9:03 AM, lassoken <[EMAIL PROTECTED]> wrote: > Hi, > > It would be really nice if fish provided API for completion. This would also > benefit fish itself since if other programs used command completion of fish, > the number of custom completions would probably increase. Wha

Re: [Fish-users] Ubuntu 7.10 package of 1.23.0

2008-01-23 Thread Philip Ganchev
On Jan 23, 2008 5:54 PM, Axel Liljencrantz <[EMAIL PROTECTED]> wrote: > On Jan 23, 2008 9:17 PM, James Vega <[EMAIL PROTECTED]> wrote: > > Unfortunately, it looks like fish won't make it into Hardy since Ubuntu > > is already past the point where they automatically import packages from > > Debian.

[Fish-users] Suggestion: extend case insensitivity of completions

2008-01-22 Thread Philip Ganchev
I think it would be useful to be able to type "echo $fish-" and see completions for "fish_color_command" etc. if there is no match for "$fish-". I often forget whether a given command, file or variable name has underscore or hyphen. For example I type "echo $fish-color-", then have to delete and

Re: [Fish-users] sudo !! doesn't work.

2008-01-22 Thread Philip Ganchev
On Jan 22, 2008 7:39 PM, Beni Cherniavsky <[EMAIL PROTECTED]> wrote: [...] > P.S. unrelated: I just used "help" which tried to launch firefox but > firefox failed for whatever reason. > I'm left without ability to see help. This is bad. Not everybody > knows about BROWSER. > Proposed solution: he

Re: [Fish-users] sudo !! doesn't work.

2008-01-22 Thread Philip Ganchev
On Jan 22, 2008 7:39 PM, Beni Cherniavsky <[EMAIL PROTECTED]> wrote: [...] > Another idea: "message area": automatically display the helpful > messages while editing, below the edited command: I had thought about this for a long time and suggested something like it maybe a year ago (can't find the

Re: [Fish-users] [bugs] Tinkering with Fish 1.23.0 on Mac OS X

2008-01-22 Thread Philip Ganchev
On Jan 22, 2008 1:16 PM, Nick Pilon <[EMAIL PROTECTED]> wrote: [...] > 1) Man pages for commands that are in subsections. This is easy enough > to fix. For example: > lastwords(1m)- print syscalls before exit. Uses DTrace [...] > 2) Man pages with alternative names with just plain weird

Re: [Fish-users] Non host-local universal variables?

2008-01-22 Thread Philip Ganchev
I have thought for a while how clean it would be to store variables as files, similar to how functions are stored as files. Then you can read and change them outside Fish, even when Fish is not running. That's conceptually simpler, a form of init file. It also seems to me technically simpler to i

Re: [Fish-users] Newline escaping problem

2008-01-18 Thread Philip Ganchev
On Jan 18, 2008 5:01 AM, Stefano Sabatini <[EMAIL PROTECTED]> wrote: [...] > [EMAIL PROTECTED] ~/./f/completions> set -l list (echo foo bar foobar barfoo) By the way, you can achieve the same using set -l list foo bar foobar barfoo

Re: [Fish-users] sudo !! doesn't work.

2008-01-14 Thread Philip Ganchev
On Jan 13, 2008 5:53 AM, Martin Bähr <[EMAIL PROTECTED]> wrote: > On Sun, Jan 13, 2008 at 02:18:19AM -0500, Philip Ganchev wrote: > > I was not suggesting that the command should execute with root > > permissions all the time. It should execute with the least > > permi

Re: [Fish-users] sudo !! doesn't work.

2008-01-12 Thread Philip Ganchev
On Jan 11, 2008 6:34 PM, Isaac Dupree <[EMAIL PROTECTED]> wrote: > > >> But just doing nothing when I type "sudo !!" is not very friendly. At the > >> least, it should pop up a message telling me the "fish way" to do it. > > > > This is about as complicated as fully implementing "!!". > > code com

Re: [Fish-users] sudo !! doesn't work.

2008-01-12 Thread Philip Ganchev
On Jan 11, 2008 7:38 PM, Martin Bähr <[EMAIL PROTECTED]> wrote: > On Fri, Jan 11, 2008 at 04:56:57PM -0500, Philip Ganchev wrote: > > Ideally, you should not have to type "sudo". If a command requires > > privileges, the user should be able to type the command an

Re: [Fish-users] sudo !! doesn't work.

2008-01-11 Thread Philip Ganchev
On Jan 11, 2008 4:13 PM, Endolith <[EMAIL PROTECTED]> wrote: > Beni Cherniavsky <[EMAIL PROTECTED]> writes: > > appends the last word of the last command, so it won't do > > what you want in general. > > But what's wrong with "sudo "? > > That's fine I guess. Both this and "!!" are kind of awkwar

Re: [Fish-users] default directory

2008-01-08 Thread Philip Ganchev
On Jan 8, 2008 5:33 PM, Isaac Dupree <[EMAIL PROTECTED]> wrote: > Axel Liljencrantz wrote: > > I've been contemplating implementing something like a --local switch > > to cd, which would change directory and change back when the current > > block goes out of scope. Should be rather usable. Isn't t

Re: [Fish-users] configuration lost and request for noclobber in set

2007-10-18 Thread Philip Ganchev
On 10/17/07, Axel Liljencrantz <[EMAIL PROTECTED]> wrote: [...] > On 10/17/07, Fernando Canizo <[EMAIL PROTECTED]> wrote: [...] > > The only thing left is that sometimes one will really want to truncate a > > file. In bash this is achieved with this syntax (when noclobber is set): > > > > echo "not

  1   2   3   >