Peter Flood | 5 Feb 17:12
Gravatar

fish on raspberry pi

When I get my hands on a Raspberry Pi I will, of course, want to install 
fish in an Ubuntu environment. Can anyone foresee any problems with 
using the existing Ubuntu fish package on ARM based architecture?

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Peter Flood | 2 Feb 16:48
Gravatar

errors when doing cd -

When I run `cd -` I get this output every time (but the command does 
work). I'm compiled and installed from the gitorious master a couple of 
days ago, OS X lion.

I'm only running the command once but the output seems to be duplicated.

$ cd -
switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',

in function 'cd',
called on standard input,
with parameter list '-'

switch − switch ‐ conditionally execute a block of commands

switch ‐ conditionally execute a block of commands
Synopsis
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type 'help switch' for related documentation

switch: Expected exactly one argument, got 0
/usr/local/share/fish/functions/prevd.fish (line 16): switch $argv[$i]
^
in function 'prevd',
called on line 20 of file '/usr/local/share/fish/functions/cd.fish',
(Continue reading)

Peter Flood | 31 Jan 17:23
Gravatar

Why bash is broken

I just found this post written by Axel while looking for something else and thought that it would be good to share (apologies if you've seen it already).

http://ubuntuforums.org/archive/index.php/t-26795.html

Look for the post at April 29th, 2005, 09:50 PM
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Gravatar

Error, am I compiling the right version

Hi

I've got a new machine and need to install fish. I've downloaded the 
current master branch from gitorious but am getting this error when I 
run make

...
gcc -g -O2 -std=c99 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 
-fno-optimize-sibling-calls -Wall 
-DLOCALEDIR=\"/usr/local/share/locale\" -DPREFIX=L\"/usr/local\" 
-DDATADIR=L\"/usr/local/share\" -DSYSCONFDIR=L\"/usr/local/etc\" 
-std=c99 -c -o common.o common.c
In file included from common.c:86:
util.c: In function ‘q_realloc’:
util.c:131: error: ‘ptrdiff_t’ undeclared (first use in this function)
util.c:131: error: (Each undeclared identifier is reported only once
util.c:131: error: for each function it appears in.)
util.c:131: error: expected ‘;’ before ‘diff’
util.c:144: error: ‘diff’ undeclared (first use in this function)
make: *** [common.o] Error 1

Is master the correct version to use?

Thanks

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Jan Kanis | 24 Jan 19:01
Picon
Gravatar

Re: commandline function and escaping

I agree that 'commandline -b' indeed has a less-than-optimal behaviour. We could add a switch to tell it not to interpret escape characters, but I really can't think of a use for the current behaviour either, so I agree that it should just be fixed. I committed a fix to my personal branch on gitorious to test if it works.

Jan



On Tue, Jan 24, 2012 at 06:47, Maxim Gonchar <gmaxfl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi,

I have a function which puts current commandline buffer to the editor.
It's really useful sometimes.

function .edit_cmd --description 'Edit cmdline in editor'
               set -l f (mktemp)
               set -l p (commandline -C)
               commandline -b > $f
               vim -c set\ ft=fish $f
               commandline -r (more $f)
               commandline -C $p
               rm $f
           end

Recently, I've found that it breaks the quoted text. I.e. the command
'echo "first second" third' is looses its double quotes when editing.
Unescaping is done in file builtin_commandline.c:199. I wonder if
unescaping is really needed when cmd is not tokenized. I simply can not
figure
out any possible usage of it.

So I propose to avoid unescape function when commandline is called without
'tokenize' key.

What do you think about it?

regards,
Maxim

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fish-users mailing list
Fish-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/fish-users


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
Maxim Gonchar | 24 Jan 06:47
Picon
Gravatar

commandline function and escaping

Hi,

I have a function which puts current commandline buffer to the editor.  
It's really useful sometimes.

function .edit_cmd --description 'Edit cmdline in editor'
                set -l f (mktemp)
                set -l p (commandline -C)
                commandline -b > $f
                vim -c set\ ft=fish $f
                commandline -r (more $f)
                commandline -C $p
                rm $f
            end

Recently, I've found that it breaks the quoted text. I.e. the command  
'echo "first second" third' is looses its double quotes when editing.
Unescaping is done in file builtin_commandline.c:199. I wonder if  
unescaping is really needed when cmd is not tokenized. I simply can not  
figure
out any possible usage of it.

So I propose to avoid unescape function when commandline is called without  
'tokenize' key.

What do you think about it?

regards,
Maxim

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
HTY | 9 Jan 08:02
Picon

please help: GNU Fish, key bindings---sorry to disturb you!

I am new to Fish and have some problems adding some features to it. I am
sorry to mail you knowing you are, in fact, not in the responsibility
for technical support, but your email address is the only one I could
find in fish's documentation. I wanted to do something like this: while
pressed Alt(\e)+p, fish adds a "|less" under the cursor in the command
line. So I wanted to bind Alt(\e)+g to something like "|grep", but the
command: bind \eg "\|grep" or anything I could think of did not work.
Wish you could spare a time for it, please!

--
Hormetjan Yiltiz
Department of Psychology
Peking University, China
100871

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
Mike Miller | 14 Dec 10:10

stderr in red

Hi, saw this on hacker news tonight, and wondered if an option to print stderr 
in red could be added to fish?

   https://github.com/sickill/stderred
   http://news.ycombinator.com/item?id=3349562

Looks like it could be a user friendly addition.

--

-- 
-Mike

  -------------------------------------------------------------
  Mike Miller             Earth, Sol, Orion Arm, Milky Way, VSC

------------------------------------------------------------------------------
Cloud Computing - Latest Buzzword or a Glimpse of the Future?
This paper surveys cloud computing today: What are the benefits? 
Why are businesses embracing it? What are its payoffs and pitfalls?
http://www.accelacomm.com/jaw/sdnl/114/51425149/
DeathGorePain | 21 Nov 14:59
Picon

[Bug]Cannot read STDIN when calling from function with paramaters

Hello everybody,

I have a slight problem, that this simple function can illustrate:

function writeIt
  set out /tmp/out.txt
  cat - > $out
end

If the function is called in the shell, one cannot see the input, however
>cat /tmp/out.txt
outputs whatever one has input.

If the function is added to ~/config/fish/config.fish and called with
>fish -c "writeIt"
one can see their input, while typing.

Could someone look into this please ?

Regards,
DeathGorePain

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users
gmaxfl | 8 Nov 05:03
Picon
Gravatar

binding

Hi,

is it possible to bind special keys with ctrl and shift modifiers? Like 
CtrlEnter, ShiftEnter and so on.
\c\n doesn't help.

best regards,
Maxim

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
SanskritFritz | 6 Nov 22:49
Picon

Re: Editing long function


On Sun, Nov 6, 2011 at 10:35 PM, gmaxfl <gmaxfl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
On 07.11.2011 05:34, SanskritFritz wrote:

In such case just edit the file /usr/share/fish/functions/help.fish (or better copy it first to ~/.config/fish/functions/ and edit there), there is no need to use funced.

that's what I usually do. I just though that probably I'm missing something.

A bigger terminal? :)

(PS. Reply to all please.)
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Fish-users mailing list
Fish-users@...
https://lists.sourceforge.net/lists/listinfo/fish-users

Gmane