Brandon Weiss | 23 Mar 07:50 2015

Post-process output?

I just saw this terminal-emojify gem and it got me wondering if there might be a way to do this for all terminal output via a fish hook, but I couldn’t find much in the documentation. Is there a way for me to post-process all output?
------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Elias Assmann | 26 Mar 10:54 2015
Picon

command substitution into one word

Hi Fishers,

In fish, command substitution returns a list when the command outputs 
multiple lines, like this:

 > function foo; echo $argv[1]; end
 > foo (echo a; echo b; echo c)
a

But what do you do when you need the output as one word?  (Where, in 
Other Shells, you might do ‘foo "$(echo a; echo b; echo c)"’.)

Here's the problem that leads me to ask this: I wanted to tell 
subversion to ignore all files present in my directory that are not 
already under version control.  This command gets me a list of those files:

 > alias svnlist "svn st | grep '\?' | tr -s ' ' | cut -d ' ' -f 2"

It outputs one file per line, which is just the format that the 
‘svn:ignore’ property expects.  But this

 > svn ps svn:ignore (svnlist) .

fails because the property value must be a single word.  On the other 
hand, this

 > svn ps svn:ignore (svnlist | tr '\n' ' ') .

as well as this

 > set tmp (svnlist); svn ps svn:ignore "$tmp" .

does not work because it puts all the files on one line.

In the present case you can use ‘svn propset’s --file option, either 
with standard input

 > svnlist | svn ps svn:ignore -F - .

or in combination with ‘psub’.  One of these workarounds is likely to 
work in many cases.  But still, is there a way to capture the exact 
output of a command?

	Elias

------------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users
charlie | 25 Mar 04:42 2015
Picon

Dependency on lynx ?

Installing fish on raspbian and wasn't sure I had the write package so I view the package info, and it says Depends: (...) lynx | www-brower ?

Just curious, but why that dependency? 
------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Osamu OKANO | 24 Mar 13:44 2015
Picon

Using subshells to expand multiple line arguments

Hi!

How do I do the following in fish?
$(docker-machine env local) 

When I run following in fish,
docker-machine env local
Outputs are
set -x DOCKER_TLS_VERIFY yes
set -x DOCKER_CERT_PATH /Users/osamu/.docker/machine/machines/local
set -x DOCKER_HOST tcp://192.168.99.100:2376

When I run following in fish,
eval (docker-machine env local) 
printenv|grep DOCKER
DOCKER_CERT_PATH=/Users/osamu/.boot2docker/certs/boot2docker-vm
DOCKER_TLS_VERIFY=yes:set:-x:DOCKER_CERT_PATH:/Users/osamu/.docker/machine/machines/local:set:-x:DOCKER_HOST:tcp://192.168.99.100:2376

A simpe but non-smart solution is copy and paste.
Is there any simple and smart solution?

Regards.

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Martin Cigorraga | 23 Mar 00:41 2015
Picon

Remove the equal symbol from Fish Git's prompt

Hi all,

I'm using the following code to reflect the state of a local Git repo at the prompt (mostly borrowed from Arch's wiki):

# fish git prompt
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showstagedstate 'yes'
set __fish_git_prompt_showstashstate 'yes'
set __fish_git_prompt_showupstream 'yes'
set __fish_git_prompt_color_branch FF009A #F9FFB3 #FFFD96

# Status Chars
set __fish_git_prompt_char_dirtystate '⚡'
set __fish_git_prompt_char_stagedstate '→'
set __fish_git_prompt_char_stashstate '↩'
set __fish_git_prompt_char_upstream_ahead '↑'
set __fish_git_prompt_char_upstream_behind '↓'

function fish_prompt
set_color normal
set last_status $status
#printf (whoami) <at> (hostname)
set_color $fish_color_cwd
        printf '%s' (prompt_pwd)
set_color normal
printf '%s' (__fish_git_prompt)
set_color normal
printf '%s> '
set_color normal
end


Problem is that Fish seems to automatically add the symbol = to the prompt:
~/.dotfiles (master ⚡=)>

Is there any way to instruct Fish to not show it?

Cheers!
-Martín
------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/fish-users
David Adam | 20 Mar 01:59 2015
Picon
Picon
Picon

gitter.im room

As requested, there is now a gitter.im room set up for fish:
  https://gitter.im/fish-shell/fish-shell

If you've not used gitter.im, it's a web-based chat room with persistent 
logging and GitHub integration. You can join with your IRC client as well.

Our regular IRC channel is still available - #fish on irc.oftc.net.

David Adam
zanchey@...

------------------------------------------------------------------------------
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/
Prabhanshu Abhishek | 18 Mar 21:46 2015
Picon

fish-autocomplition

Hi,
i am a student from india. and i am curious about the fish auto-completion feature , which uses man page to complete the commands.
I want to know how  fish shell uses man page to generate auto-completion.
actually i was working on project hub which is a git autocompletion tool,but more than git itself, but do not have that good man page but i want to use the fish auto-completion feature for hub also.
so i thought i can use both git and hub's man pages to generate output.
please tell me some way to implement that.
thanks,
prabhanshu
------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Mandeep Sandhu | 6 Mar 03:47 2015
Picon

query about using alias with sudo

Hi All,

Pardon my noob-ish question.

I'm trying to add an alias which I can use running as myself or as
root (via sudo).

I've added the alias in /etc/fish/config.fish. It works from me (as
user), but doesn't when run under sudo.

How do I make the alias work under sudo?

Thanks,
-mandeep

------------------------------------------------------------------------------
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/
Sam Miller | 23 Feb 01:04 2015

function eval called while blocking signals.

I saw this while upgrading fish via HomeBrew on my macbook air earlier today. Is this a known bug?

samm <at> Sams-MacBook-Air ~> brew upgrade
==> Upgrading 1 outdated package, with result:
fish 2.1.2
==> Upgrading fish
==> Downloading https://homebrew.bintray.com/bottles/fish-2.1.2.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring fish-2.1.2.yosemite.bottle.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 <at> lists.sf.net.
fish: Backtrace:
0   fish                                0x000000010518cca5 _Z15show_stackframev + 94
1   fish                                0x0000000105169ef9
_ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t
+ 185
2   fish                                0x000000010514d026 _ZL11start_fishdv + 358
3   fish                                0x0000000105183e1b _ZL10get_socketv + 62
4   fish                                0x00000001051841b0 _ZL9reconnectv + 91
5   fish                                0x0000000105183ead _Z22env_universal_read_allv + 32
6   fish                                0x0000000105184300 _ZL16check_connectionv + 169
7   fish                                0x0000000105183f70 _Z21env_universal_barrierv + 155
8   fish                                0x000000010514e43f _Z14env_export_arrb + 74
9   fish                                0x000000010515126e _Z8exec_jobR8parser_tP5job_t + 1438
10  fish                                0x0000000105169d07 _ZN8parser_t8eval_jobEP11tokenizer_t + 1475
11  fish                                0x0000000105169fe2
_ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t
+ 418
12  fish                                0x000000010515304d _ZL20internal_exec_helperR8parser_tPKw12block_type_tRK10io_chain_t
+ 1033
13  fish                                0x00000001051516de _Z8exec_jobR8parser_tP5job_t + 2574
14  fish                                0x0000000105169d07 _ZN8parser_t8eval_jobEP11tokenizer_t + 1475
15  fish                                0x0000000105169fe2
_ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t
+ 418
16  fish                                0x0000000105153577
_ZL22exec_subshell_internalRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPNS_6vectorIS5_NS3_IS5_EEEEb
+ 383
17  fish                                0x0000000105155b87
_ZL15expand_cmdsubstR8parser_tRKNSt3__112basic_stringIwNS1_11char_traitsIwEENS1_9allocatorIwEEEERNS1_6vectorI12completion_tNS5_ISB_EEEE
+ 376
18  fish                                0x0000000105154a77
_Z13expand_stringRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEERNS_6vectorI12completion_tNS3_IS9_EEEEi
+ 361
19  fish                                0x0000000105167119
_ZN8parser_t23parse_job_argument_listEP9process_tP5job_tP11tokenizer_tRNSt3__16vectorI12completion_tNS6_9allocatorIS8_EEEEb
+ 1969
20  fish                                0x0000000105169008 _ZN8parser_t9parse_jobEP9process_tP5job_tP11tokenizer_t + 6392
21  fish                                0x0000000105169a76 _ZN8parser_t8eval_jobEP11tokenizer_t + 818
22  fish                                0x0000000105169fe2
_ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t
+ 418
23  fish                                0x000000010515304d _ZL20internal_exec_helperR8parser_tPKw12block_type_tRK10io_chain_t
+ 1033
24  fish                                0x00000001051516de _Z8exec_jobR8parser_tP5job_t + 2574
25  fish                                0x0000000105169d07 _ZN8parser_t8eval_jobEP11tokenizer_t + 1475
26  fish                                0x0000000105169fe2
_ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t
+ 418
27  fish                                0x0000000105153577
_ZL22exec_subshell_internalRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPNS_6vectorIS5_NS3_IS5_EEEEb
+ 383
28  fish                                0x0000000105170f18 _ZL11exec_promptv + 286
29  fish                                0x0000000105172b11 _Z15reader_readlinev + 172
30  fish                                0x0000000105177485 _Z11reader_readiRK10io_chain_t + 624
31  fish                                0x000000010519e591 main + 3909
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 <at> lists.sf.net.
fish: Backtrace:
0   fish                                0x000000010518cca5 _Z15show_stackframev + 94
1   fish                                0x0000000105169ef9
_ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t
+ 185
2   fish                                0x000000010514d026 _ZL11start_fishdv + 358
3   fish                                0x0000000105183e1b _ZL10get_socketv + 62
4   fish                                0x00000001051841b0 _ZL9reconnectv + 91
5   fish                                0x0000000105184081 _Z21env_universal_barrierv + 428
6   fish                                0x000000010514e43f _Z14env_export_arrb + 74
7   fish                                0x000000010515126e _Z8exec_jobR8parser_tP5job_t + 1438
8   fish                                0x0000000105169d07 _ZN8parser_t8eval_jobEP11tokenizer_t + 1475
9   fish                                0x0000000105169fe2
_ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t
+ 418
10  fish                                0x000000010515304d _ZL20internal_exec_helperR8parser_tPKw12block_type_tRK10io_chain_t
+ 1033
11  fish                                0x00000001051516de _Z8exec_jobR8parser_tP5job_t + 2574
12  fish                                0x0000000105169d07 _ZN8parser_t8eval_jobEP11tokenizer_t + 1475
13  fish                                0x0000000105169fe2
_ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t
+ 418
14  fish                                0x0000000105153577
_ZL22exec_subshell_internalRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPNS_6vectorIS5_NS3_IS5_EEEEb
+ 383
15  fish                                0x0000000105155b87
_ZL15expand_cmdsubstR8parser_tRKNSt3__112basic_stringIwNS1_11char_traitsIwEENS1_9allocatorIwEEEERNS1_6vectorI12completion_tNS5_ISB_EEEE
+ 376
16  fish                                0x0000000105154a77
_Z13expand_stringRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEERNS_6vectorI12completion_tNS3_IS9_EEEEi
+ 361
17  fish                                0x0000000105167119
_ZN8parser_t23parse_job_argument_listEP9process_tP5job_tP11tokenizer_tRNSt3__16vectorI12completion_tNS6_9allocatorIS8_EEEEb
+ 1969
18  fish                                0x0000000105169008 _ZN8parser_t9parse_jobEP9process_tP5job_tP11tokenizer_t + 6392
19  fish                                0x0000000105169a76 _ZN8parser_t8eval_jobEP11tokenizer_t + 818
20  fish                                0x0000000105169fe2
_ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t
+ 418
21  fish                                0x000000010515304d _ZL20internal_exec_helperR8parser_tPKw12block_type_tRK10io_chain_t
+ 1033
22  fish                                0x00000001051516de _Z8exec_jobR8parser_tP5job_t + 2574
23  fish                                0x0000000105169d07 _ZN8parser_t8eval_jobEP11tokenizer_t + 1475
24  fish                                0x0000000105169fe2
_ZN8parser_t4evalERKNSt3__112basic_stringIwNS0_11char_traitsIwEENS0_9allocatorIwEEEERK10io_chain_t12block_type_t
+ 418
25  fish                                0x0000000105153577
_ZL22exec_subshell_internalRKNSt3__112basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEEEPNS_6vectorIS5_NS3_IS5_EEEEb
+ 383
26  fish                                0x0000000105170f18 _ZL11exec_promptv + 286
27  fish                                0x0000000105172b11 _Z15reader_readlinev + 172
28  fish                                0x0000000105177485 _Z11reader_readiRK10io_chain_t + 624
29  fish                                0x000000010519e591 main + 3909
30  libdyld.dylib                       0x00007fff982c35c9 start + 1
31  ???                                 0x0000000000000001 0x0 + 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?
samm <at> Sams-MacBook-Air ~> 

------------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users
Ryan Burnett | 1 Mar 23:10 2015
Picon

Remove path from $fish_user_paths

I accidentally added a path to $fish_user_paths:

set -U fish_user_paths $fish_user_paths /usr/local/php5

How can I remove this /usr/local/php5 path?
------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/fish-users
David Adam | 27 Feb 09:21 2015
Picon
Picon
Picon

fish 2.1.2 released


Hi all,

fish 2.1.2 has been released.

You only need to upgrade from 2.1.1 if you are running Mac OS X 
Yosemite,
where fish triggers an unusual change in the filesystem that causes the 
OS X
Disk Utility to claim the filesystem isn't clean and report an invalid
number of hard links.

fish 2.1.2 avoids triggering the bug, but does not repair an already
affected filesystem. To repair the filesystem, you can boot into 
Recovery
Mode and use Repair Disk from Disk Utility. Linux and versions of OS X 
prior
to Vegemite are believed to be unaffected.

The details of the problem are at
https://github.com/fish-shell/fish-shell/issues/1859

New tarballs and OS X binaries can be downloaded at 
http://fishshell.com/ .
We haven't respun the Linux builds are there are no changes.

Thanks to all those involved in tracking down the issue!

David Adam
fish committer
zanchey@...

Gmane