@lbutlr | 30 Jul 02:43 2015

basic fish_prompt question

The tutorial on prompts has this example:

> function fish_prompt
      set_color purple
      date "+%m/%d/%y"
      set_color FF0
      echo (pwd) '>'
      set_color normal
  end

How would I do that exact same prompt, but all on a single line?

--

-- 
Lead me not into temptation, I can find the way.

------------------------------------------------------------------------------
Johnny Bravo | 13 Jul 21:55 2015
Picon

disown (bash,zsh) equivalent in fish

As subject says, I want a equivalent to disown (detaches a process from its parent) as found i bash 
and zsh in fish. Is there such a thing?

--

-- 
Johnny Bravo
Fixed width is evil!

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
ridiculous_fish | 12 Jul 12:19 2015

Fish 2.2.0 release

Hello fellow fish fans,

fish 2.2.0 is released! The tarball and OS X package is available now at http://fishshell.com, with Linux and Homebrew packages available in the near future.

Major features of this release include vi mode, abbreviations, and the new inline pager. Release notes are available at http://fishshell.com/release_notes.html

Thanks to our many contributors, especially the indefatigable zanchey!

_fish
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Elias Assmann | 19 Jun 11:51 2015
Picon

fish_config unreactive


Hi List,

When I run `fish_config', the config page is loaded in the browser,
but it is "empty" (no colors shown in the color menu) and does not
react to clicks.  Here is a screen shot:
<http://i.imgur.com/PASSpeE.png>.  I tried this with two different
browsers (iceweasel and konqueror) to the same result.

Any idea what might be going wrong?

	Elias
Attachment (0x197CEA8F.asc): application/pgp-keys, 3114 bytes
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Elias Assmann | 18 Jun 10:48 2015
Picon

How to delete a function?


Hi List,

Seems like I should be able to find this out on my own, but I could
not find anything.

How do I delete a function?

For saved functions, of course I can delete the file, and the function
will be undefined in a new shell; but how do I remove function
definitions in a running shell?

	Elias
Attachment (0x197CEA8F.asc): application/pgp-keys, 3112 bytes
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Gour | 12 Jun 14:42 2015
Picon

login shell under FreeBSD

Hello,

recently I moved from Linux to Free/PC-BSD where I'm using fish shell as
default one under Lumina DE.

I experience strange thing that after logging into DE and launching my
default (urxvt) terminal, the shell is not login-shell but interactive one,
so the commands which I have under

if status --is-login
...
end

block are not executed.

Under Linux things somehow worked out-of-the-box, so I wonder if you have any
hint to start my shell as login-shell right after logging into DE?

Sincerely,
Gour

--

-- 

------------------------------------------------------------------------------
Joseph Page | 26 May 10:09 2015
Picon

Bug report

joseph <at> iMac-de-Joseph ~> sudo brew upgrade fish

==> Upgrading 1 outdated package, with result:

fish 2.1.2

==> Upgrading fish

==> Downloading https://homebrew.bintray.com/bottles/fish-2.1.2.mavericks.bottle.1.tar.gz

######################################################################## 100,0%

==> Pouring fish-2.1.2.mavericks.bottle.1.tar.gz

==> Caveats

You will need to add:

  /usr/local/bin/fish

to /etc/shells. Run:

  chsh -s /usr/local/bin/fish

to make fish your default shell.

==> pkill fishd || true

==> Summary

🍺  /usr/local/Cellar/fish/2.1.2: 670 files, 5,5M

fish: function eval called while blocking signals.

fish: This is a bug. Break on bugreport to debug.If you can reproduce it, please send a bug report to fish-users-TtF/mJH4Jtrk1uMJSBkQmQ@public.gmane.org.

fish: Backtrace:

0   fish                                0x000000010c4e79f5 _Z15show_stackframev + 94

1   fish                                0x000000010c4c4571 _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 185

2   fish                                0x000000010c4a6e76 _ZL11start_fishdv + 358

3   fish                                0x000000010c4de6b5 _ZL10get_socketv + 62

4   fish                                0x000000010c4dea66 _ZL9reconnectv + 91

5   fish                                0x000000010c4de747 _Z22env_universal_read_allv + 32

6   fish                                0x000000010c4debb4 _ZL16check_connectionv + 169

7   fish                                0x000000010c4de7fb _Z21env_universal_barrierv + 140

8   fish                                0x000000010c4a82a6 _Z14env_export_arrb + 74

9   fish                                0x000000010c4ab45a _Z8exec_jobR8parser_tP5job_t + 1438

10  fish                                0x000000010c4c4384 _ZN8parser_t8eval_jobEP11tokenizer_t + 1512

11  fish                                0x000000010c4c465a _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418

12  fish                                0x000000010c4ad22f _ZL20internal_exec_helperR8parser_tPKw12block_type_tRK10io_chain_t + 1023

13  fish                                0x000000010c4ab8c8 _Z8exec_jobR8parser_tP5job_t + 2572

14  fish                                0x000000010c4c4384 _ZN8parser_t8eval_jobEP11tokenizer_t + 1512

15  fish                                0x000000010c4c465a _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418

16  fish                                0x000000010c4ad754 _ZL22exec_subshell_internalRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPNS_6vectorIS5_NS3_IS5_EEEEb + 383

17  fish                                0x000000010c4b01c9 _ZL15expand_cmdsubstR8parser_tRKNSt3__112basic_stringIwNS1_11char_traitsIwEENS1_9allocatorIwEEEERNS1_6vectorI12completion_tNS5_ISB_EEEE + 384

18  fish                                0x000000010c4af08b _Z13expand_stringRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEERNS_6vectorI12completion_tNS3_IS9_EEEEi + 368

19  fish                                0x000000010c4c168e _ZN8parser_t23parse_job_argument_listEP9process_tP5job_tP11tokenizer_tRNSt3__16vectorI12completion_tNS6_9allocatorIS8_EEEEb + 1964

20  fish                                0x000000010c4c35dd _ZN8parser_t9parse_jobEP9process_tP5job_tP11tokenizer_t + 6485

21  fish                                0x000000010c4c4100 _ZN8parser_t8eval_jobEP11tokenizer_t + 868

22  fish                                0x000000010c4c465a _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418

23  fish                                0x000000010c4ad22f _ZL20internal_exec_helperR8parser_tPKw12block_type_tRK10io_chain_t + 1023

24  fish                                0x000000010c4ab8c8 _Z8exec_jobR8parser_tP5job_t + 2572

25  fish                                0x000000010c4c4384 _ZN8parser_t8eval_jobEP11tokenizer_t + 1512

26  fish                                0x000000010c4c465a _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418

27  fish                                0x000000010c4ad754 _ZL22exec_subshell_internalRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPNS_6vectorIS5_NS3_IS5_EEEEb + 383

28  fish                                0x000000010c4cb7b7 _ZL11exec_promptv + 284

29  fish                                0x000000010c4cd397 _Z15reader_readlinev + 154

30  fish                                0x000000010c4d1cc1 _Z11reader_readiRK10io_chain_t + 624

31  fish                                0x000000010c4f967d main + 3813

fish: Could not connect to universal variable server, already tried manual restart (or no command supplied). You will not be able to share variable values between fish sessions. Is fish properly installed?

fish: function eval called while blocking signals.

fish: This is a bug. Break on bugreport to debug.If you can reproduce it, please send a bug report to fish-users-TtF/mJH4Jtrk1uMJSBkQmQ@public.gmane.org.

fish: Backtrace:

0   fish                                0x000000010c4e79f5 _Z15show_stackframev + 94

1   fish                                0x000000010c4c4571 _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 185

2   fish                                0x000000010c4a6e76 _ZL11start_fishdv + 358

3   fish                                0x000000010c4de6b5 _ZL10get_socketv + 62

4   fish                                0x000000010c4dea66 _ZL9reconnectv + 91

5   fish                                0x000000010c4de934 _Z21env_universal_barrierv + 453

6   fish                                0x000000010c4a82a6 _Z14env_export_arrb + 74

7   fish                                0x000000010c4ab45a _Z8exec_jobR8parser_tP5job_t + 1438

8   fish                                0x000000010c4c4384 _ZN8parser_t8eval_jobEP11tokenizer_t + 1512

9   fish                                0x000000010c4c465a _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418

10  fish                                0x000000010c4ad22f _ZL20internal_exec_helperR8parser_tPKw12block_type_tRK10io_chain_t + 1023

11  fish                                0x000000010c4ab8c8 _Z8exec_jobR8parser_tP5job_t + 2572

12  fish                                0x000000010c4c4384 _ZN8parser_t8eval_jobEP11tokenizer_t + 1512

13  fish                                0x000000010c4c465a _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418

14  fish                                0x000000010c4ad754 _ZL22exec_subshell_internalRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPNS_6vectorIS5_NS3_IS5_EEEEb + 383

15  fish                                0x000000010c4b01c9 _ZL15expand_cmdsubstR8parser_tRKNSt3__112basic_stringIwNS1_11char_traitsIwEENS1_9allocatorIwEEEERNS1_6vectorI12completion_tNS5_ISB_EEEE + 384

16  fish                                0x000000010c4af08b _Z13expand_stringRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEERNS_6vectorI12completion_tNS3_IS9_EEEEi + 368

17  fish                                0x000000010c4c168e _ZN8parser_t23parse_job_argument_listEP9process_tP5job_tP11tokenizer_tRNSt3__16vectorI12completion_tNS6_9allocatorIS8_EEEEb + 1964

18  fish                                0x000000010c4c35dd _ZN8parser_t9parse_jobEP9process_tP5job_tP11tokenizer_t + 6485

19  fish                                0x000000010c4c4100 _ZN8parser_t8eval_jobEP11tokenizer_t + 868

20  fish                                0x000000010c4c465a _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418

21  fish                                0x000000010c4ad22f _ZL20internal_exec_helperR8parser_tPKw12block_type_tRK10io_chain_t + 1023

22  fish                                0x000000010c4ab8c8 _Z8exec_jobR8parser_tP5job_t + 2572

23  fish                                0x000000010c4c4384 _ZN8parser_t8eval_jobEP11tokenizer_t + 1512

24  fish                                0x000000010c4c465a _ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t + 418

25  fish                                0x000000010c4ad754 _ZL22exec_subshell_internalRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPNS_6vectorIS5_NS3_IS5_EEEEb + 383

26  fish                                0x000000010c4cb7b7 _ZL11exec_promptv + 284

27  fish                                0x000000010c4cd397 _Z15reader_readlinev + 154

28  fish                                0x000000010c4d1cc1 _Z11reader_readiRK10io_chain_t + 624

29  fish                                0x000000010c4f967d main + 3813

30  libdyld.dylib                       0x00007fff8d02b5fd start + 1

fish: Could not connect to universal variable server, already tried manual restart (or no command supplied). You will not be able to share variable values between fish sessions. Is fish properly installed?

------------------------------------------------------------------------------
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
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

------------------------------------------------------------------------------
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
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/ 

You can get help with fish:
 * On this mailing list, <fish-users@...>;
 * On IRC, in #fish on irc.oftc.net; or
 * At https://gitter.im/fish-shell/fish-shell using the Gitter chat room.

The release is available in the following ways:
 * For OS X: packages at http://fishshell.com/beta/
 * For Ubuntu Linux: packages & PPA at 
   http://launchpad.net/~fish-shell/+archive/beta-2
 * For Debian, Fedora, openSUSE and RedHat/CentOS: packages and repository 
   at http://software.opensuse.org/download.html?project=shells%3Afish%3Abeta%3A2&package=fish
 * For other platforms: source tarball at http://fishshell.com/beta/ 
   (SHA-1 sum is fcf8e0a68973894e6a23a142a79637cf2379fbcb).
 * From Git: using the Integration_2.2.0 branch.

There are a few minor changes still targeted for fish 2.2.0 - see

https://github.com/fish-shell/fish-shell/issues?q=is%3Aopen+is%3Aissue+milestone%3A%22fish+2.2.0%22 
for a full list. Patches are most welcome!

David Adam
fish committer
zanchey@...
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. 
What if my system is broken and I'm trying to fix it?

     ~>fish_config
     Web config started at 'http://localhost:8001/'. Hit enter to stop.

     (process:25106): GLib-CRITICAL **: g_slice_set_config: assertion 
'sys_page_size == 0' failed
     127.0.0.1 - - [08/May/2015 12:22:39] code 404, message File not found
     127.0.0.1 - - [08/May/2015 12:22:39] code 404, message File not found
     ^C
     Shutting down.

This did work and found my browser, so there is some inconsistency somewhere. 
Must be using different code.

I notice that fish isn't consistent with --help either:

     - echo <nl>     # prints a nl
     - echo --help   # prints help :)

     - for <nl>      # prints errors, then help, repopulates cmd-line
     - for --help    # prints errors, then help, repopulates cmd-line

     - while <nl>    # prints errors, then help, repopulates cmd-line
     - while --help  # gets stuck, needs ^C to escape

TL;DR  Would be nice if fish could...

- Give help on builtins as well with the help command,
     - perhaps default output to the terminal its in,
         - unless a switch was given to use the browser
             - unless that fails, fall back to terminal, perhaps with warning

- Have builtins recognize --help, skipping errors, as most external commands do.

- Consolidate all help code into a single function or module to ensure it is 
consistent everywhere.

Thanks for reading,
-Mike

On 05/08/2015 09:48 AM, fish-users-request <at> lists.sourceforge.net wrote:
>     2. Re: 5 minutes fish from 15 years bash impression (Diego Zamboni)

------------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users
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

Gmane