Greg Reagle | 12 May 18:36 2015

fish help for command line: 1. big man page 2. using elinks

Reading some of the comments to this list recently, I've been thinking about how to make getting help for
fish more easy and convenient to users who like to stay on the command line, for example using man instead of
a web browser.

What about creating a man page with a name like fish-commands that is the equivalent of commands.html but in
man page format.  The content already exists in my installation (Debian package) of fish but split into
separate man pages for each command.  I think it would be extremely useful to have all the commands in one
document in man format.

I am proposing *adding* this man page to what already exists, not removing or replacing anything.

For those who want this kind of functionality now, the following two functions will do it:

function html2txt
        elinks -dump -no-numbering -no-references $argv
end

function view-help
        if set -q BROWSER
                set -l SAVE_BROWSER $BROWSER
                set -x BROWSER html2txt
                help $argv
                set BROWSER $SAVE_BROWSER
        else
                set -gx BROWSER html2txt
                help $argv
                set -e BROWSER
        end
end

(Continue reading)

David Adam | 11 May 16:18 2015
Picon
Picon
Picon

Beta release fish 2.2b1


Hi all,

The long-awaited next release of fish is on its way!

Due to the large number of architectural and other changes within fish, 
we have started with a beta release - fish 2.2b1. Any testing would be 
very much appreciated.

The release notes are available at:
  http://fishshell.com/beta/release_notes.html

As always, please make sure you read them before upgrading as there are a 
number of known issues and minor backward-incompatible changes.

In particular, the `fishd` component has been removed, which means that 
after installing the beta you should restart all running versions of fish. 
New and old instances will not be able to share universal variables, 
possibly causing you to lose changes from old or new sessions.

If you are packaging fish for your distribution, you might have a `killall 
fishd` stanza in your install script for those upgrading to the 2.1.x 
series. This can be safely removed for 2.2b1.

You can report problems with the beta:
 * To this mailing list (making sure you tell us which version you are 
   running)
 * In the GitHub issue tracker at 
   https://github.com/fish-shell/fish-shell/ 

(Continue reading)

Mike Miller | 8 May 22:20 2015
Picon

Re: fish help consistency

Ok, so I love fish in general and the original guy who was complaining before 
was a bit rude, but I liked a few of his ideas.  Namely that help should have a 
consistent interface and it is currently kind of a mess.

I've been scouring the 'net when needing fish help and forgot why since it has 
been so long.  Not to mention googling "fish shell ..." is just as likely to 
return seafood recipes, hahah.

Perhaps I have something misconfigured (2.1 on Ubuntu) but here are my results:

     ~>help for
     cat: : No such file or directory
     cat: invalid option -- 'f'
     Try 'cat --help' for more information.
     cat: invalid option -- 'f'

     ... snip 20x ...

     cat: cygstart: No such file or directory
     cat: xdg-open: No such file or directory
     help: Could not find a web browser.
     Please set the variable $BROWSER to a suitable browser and try again.

Didn't work.  I don't mind a web browser showing things, but I didn't ask for 
that, and just expect it to work in any case.  If I'm in a terminal, I'd expect 
it to print to stdout unless I ask for something different.  I tried it on my 
linux console/ssh also, same error... not sure what we're thinking looking for a 
browser in those environments?

I shouldn't have to set a variable and forced to get help from a GUI browser. 
(Continue reading)

Aleksey Midenkov | 7 May 13:08 2015
Picon

Never say never

Every now and then I see people saying "X is bad, never do X!" Trying
to achieve some advantage by 'never' doing something is a way to fall
in another disadvantage. There are no straight ways, there are no
simple things! Trying to look at things simply is a way to confine
yourself.

There is a great quote from a great man, who said 'All genius is
simple'. This quote leads many to illusion. I don't know whether it
made more good or evil. The more correct phrase is 'All genius is
harmonic'. The harmony differs from simpleness in that simpleness is
limited and harmony is limitless. Simpleness is just a property of
each of infinite count of aspects of harmony. Trying to be simple you
see only one plane from this harmony and lose the whole picture.

Every here and there people and their creations suffer from this
disease. This makes world crippled and defective. To be frank, too
much crippleness and defect in this world, especially in software and
computing field! Simpleness is easy and tempting, harmony is much more
complex, difficult and frightening. It contains infinite number of
levels, where each one of them looks more or less simple. But this
doesn't mean you must close your eyes and pretend that it doesn't ever
exist.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
(Continue reading)

Aleksey Midenkov | 5 May 13:01 2015
Picon

5 minutes fish from 15 years bash impression

> help for

It opened browser window... I don't need browser, I need quick and
easy way to access basic syntax what does inline help in bash. It's
console app after all!

> man for

Not really good: the default PAGER is 'less' which doesn't fully
comply with 'quick and easy'. Well, if to trim NAME section and quick
description ('for - perform a set of commands multiple times.') and
output with 'cat' it will be almost like 'help' in bash, but:

> PAGER=cat man for
fish: Unknown command 'PAGER=cat'. Did you mean to run man with a
modified environment? Try 'env PAGER=cat man…'. See
the help section on the set command by typing 'help set'.

I recall, that I've read something about "fish doesn't like
subshells". Well, it's good to set variables inside pipes: I like
that! But, here I want quick and easy way to use temporary settings.
Ok, let's try what error said:

> env PAGER=cat man for
No manual entry for for

OMG, what was that?? It set PAGER and forgot all other variables? I
guess, it executed '/usr/bin/env' which is not related to any shell
and behaves how it wants, thus not a good method. I just want a
subshell here with a quick and concise:
(Continue reading)

Alistair Grant | 26 Apr 10:15 2015
Picon

cd writes file://...

Hi All,

I recently did a clean install of Ubuntu 15.04 and then added the
nightly builds of fish, as I'm running on all my other machines.  On
this one PC cd is printing additional noise after the command, e.g.

> cd tmp
?7;file://alistair-xps13/%68%6f%6d%65/%61%6c%69%73%74%61%69%72/%74%6d%70

The first ? is probably the escape character, "alistair-xps13" is the
hostname, the rest is the URL encoded full path name.

The cd function definition is the same as on the other machines that
don't have the problem.

Any ideas on how to get rid of this?

Thanks very much,
Alistair

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
Nicola Jelmorini | 25 Apr 13:41 2015
Picon

Video tutorial series about the Fish shell

Hi,
I would let you know that I have just concluded to publish a series of video tutorials about the Fish shell on Youtube.
In these videos I explain many things like the installation of the shell, the development of a script, the translation of a script from bash, how to set fish as the default shell, and much more.
The only problem could be that all the videos are spoken in Italian, because this is my mother tongue, and I'm not so confident in English to be able to use it. I'm aware that the majority, if not all, of you speak in English, but perhaps someone can understand what I say.

This is the link to the playlist: https://www.youtube.com/watch?v=sKqD67uhqYE&list=PLw0KtiqffyyalFRiZWIuveZdyLaSIrNoU

I hope someone can anyway find my video series interesting or useful.

Best Regards
Nicola
----------------------------------------------------------------------------
Io uso Ubuntu e tu?
Ich benütze Ubuntu und du?
J'utilise Ubuntu et vous?
I use Ubuntu and you?

Sent from ProtonMail, encrypted email based in Switzerland.
Inviato da ProtonMail, e-mail criptata con sede in Svizzera.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Oliver Schrenk | 25 Apr 12:21 2015
Picon

Idiomatic way to test if command works (specifically `bind -M`)

Hi,

what is the best way to test if a command or rather a specific command option exists?

Specifically I want to test if `bind -M` is supported by the current version of the shell.

Cheers,
Oliver
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
Michael Stillwell | 20 Apr 11:22 2015

In what file is a function defined?

`type` (and the executable `which`) can be used to show the full path
name of command:

$ type -P ls
/bin/ls

Is there some similar for fish functions that will show in which file
a certain function was defined? (`type funcname` shows the definition
of a function, but not the source.)

Michael

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
David E Vannucci | 20 Apr 09:50 2015

HISTTIMEFORMAT not applied

Hi 

In my config file ~/.config/fish/config.fish

I set my variable: set -g -x HISTTIMEFORMAT "%F %T "

but the history command does not show the formatting.
vannucci <at> Davids-MacBook-Pro ~> history
history
histoy
vim ~/.config/fish/config.fish
fish_config 

What do I need to do for history formatting to be applied?

Thanks
David

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
Fredrik Gustafsson | 19 Apr 20:45 2015

Unable to print wide characters

Hi
I was using this fish config:
http://www.martinklepsch.org/posts/git-prompt-for-fish-shell.html

and when I'm going into a path with a dirty git directory I get the
error message:
~ cd projects/book/
fish: Tried to print invalid wide character string

I've tried to set LANG to utf-8.sv_SE but the problem persists.

I'm using the crosh shell on chrome os.

Does anyone have an idea of what the problem can be?
--

-- 
Fredrik Gustafsson

phone: +46 733-608274
e-mail: iveqy@...
website: http://www.iveqy.com

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF

Gmane