Re: [Fish-users] Fish Themes
Sure . . . let me try to un-wind it from the rest of my crap and toss it up on github. On Fri, Sep 2, 2016 at 8:59 AM, charlie <charlie.f...@gmail.com> wrote: > Can you share it please :P ? > > On Fri, Sep 2, 2016 at 9:50 AM, David Frascone <d...@frascone.com> wrote: > >> I'm pretty happy with mine, with mercurial/git branch integration, and >> error return values, plus a pretty fish! >> >> [image: Inline image 1] >> >> On Fri, Sep 2, 2016 at 8:42 AM, charlie <charlie.f...@gmail.com> wrote: >> >>> I saw a friends z-shell theme the other day and thought it was really >>> slick, https://cloud.githubusercontent.com/assets/2618447/6316862/7 >>> 0f58fb6-ba03-11e4-82c9-c083bf9a6574.png . Anyway to accomplish the >>> same thing in Fish ? Or where would I start looking ? >>> >>> Thanks! >>> >>> >>> -- >>> >>> ___ >>> Fish-users mailing list >>> Fish-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/fish-users >>> >>> >> > > > -- > Thanks! > Charlie > > > > -- > > ___ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users > > -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Fish Themes
I'm pretty happy with mine, with mercurial/git branch integration, and error return values, plus a pretty fish! [image: Inline image 1] On Fri, Sep 2, 2016 at 8:42 AM, charliewrote: > I saw a friends z-shell theme the other day and thought it was really > slick, https://cloud.githubusercontent.com/assets/ > 2618447/6316862/70f58fb6-ba03-11e4-82c9-c083bf9a6574.png . Anyway to > accomplish the same thing in Fish ? Or where would I start looking ? > > Thanks! > > > -- > > ___ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users > > -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] disown (bash,zsh) equivalent in fish
Cool trick! On Tue, Jul 14, 2015 at 9:40 AM, Johnny Bravo n...@ifixit.no wrote: Greg Reagle wrote: On Mon, Jul 13, 2015, at 03:55 PM, Johnny Bravo wrote: 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? Do you know about nohup or dtach [1] or abduco [2]? See Is there an equivalent of the 'disown' command? issue on github [3]. I think the idea is that disown is not needed on fish. If you are more specific and detailed about what you want to accomplish, I can help better. [1] http://dtach.sourceforge.net/ [2] http://www.brain-dump.org/projects/abduco/ [3] https://github.com/fish-shell/fish-shell/issues/773 To do this: http://monkeypatch.me/blog/move-a-running-process-to-a-new-screen-shell.html :) -- 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/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Need to start fishing again
(not sure if I have enough beer) I've moved some of my stuff from fish back to bash for several reasons. But, the biggest was probably going box to box and having inconsistent setups. However, I've stabilized my personal work flow a bit, and I want to start using (and committing) to it again. Does anyone know if it currently works under cygwin? -Dave -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Need to start fishing again
How hard was it to build? Do you have destructions? I figure I might as well be using source for when/if I find issues :) -Dave On Mon, Jan 26, 2015 at 10:12 AM, Andrew Schulman and...@utexas.edu wrote: (not sure if I have enough beer) I've moved some of my stuff from fish back to bash for several reasons. But, the biggest was probably going box to box and having inconsistent setups. However, I've stabilized my personal work flow a bit, and I want to start using (and committing) to it again. Does anyone know if it currently works under cygwin? Yes! fish 2.1.1 is currently in Cygwin. I'm the maintainer, and I use it for all of my daily Windows work. It works very well for me, and I hope for you too. Andrew -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Anyone seen this?
Generally happens once, the first time I run a command, like ls. (BTW - this is cygwin) David Frascone@Bearodactyl ~ $ fish Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish David Frascone@Bearodactyl ~ ls fish: Requested redirection to something that is not a file descriptor /dev/null - (line 1): begin; setenv LS_COLORS 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:' /dev/null ;end ^ in . (source) call of file '-', called on line 21 of file '/usr/share/fish/functions/ls.fish', in . (source) call of file '/usr/share/fish/functions/ls.fish', called on standard input, in command substitution called on standard input, all_fields.out ez_setup.py Media@ -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Any chance for building/running Fish in Cygwin?
Oops -- forgot to cc list. On Wed, May 22, 2013 at 2:40 PM, David Frascone d...@frascone.com wrote: I used a bit more #ifdef logic . . . . Patch attached. On Wed, May 22, 2013 at 1:35 PM, Stestagg stest...@gmail.com wrote: Reposting to the list: Hi I've just downloaded cygwin and given it a go. I've got it to work (largely) by applying the following patch: diff --git a/builtin_set_color.cpp b/builtin_set_color.cpp index 14cf84c..a45bde7 100644 --- a/builtin_set_color.cpp +++ b/builtin_set_color.cpp @@ -12,7 +12,7 @@ Functions used for implementing the set_color builtin. #if HAVE_NCURSES_H #include ncurses.h #else -#include curses.h +#include ncurses/ncurses.h #endif #if HAVE_TERM_H diff --git a/expand.cpp b/expand.cpp index 74e5010..d45ab9c 100644 --- a/expand.cpp +++ b/expand.cpp @@ -18,7 +18,7 @@ parameter expansion. #include limits.h #include sys/param.h #include sys/types.h -#include sys/sysctl.h +//#include sys/sysctl.h #include termios.h #include dirent.h #include sys/stat.h diff --git a/fallback.h b/fallback.h index eba91be..9dd4709 100644 --- a/fallback.h +++ b/fallback.h @@ -93,8 +93,8 @@ int tputs(const char *str, int affcnt, int (*fish_putc)(tputs_arg_t)); work around this here. */ -#define tparm tparm_solaris_kludge -char *tparm_solaris_kludge(char *str, ...); +//#define tparm tparm_solaris_kludge +//char *tparm_solaris_kludge(char *str, ...); #endif when fish starts up there are a few error messages, but things seem to be mainly working. Thanks Steve On Wed, May 22, 2013 at 7:15 PM, Costin Caraivan costincarai...@gmail.com wrote: Hello there! I am one of those poor souls that are stuck in Windows. The reasons for this are not very important, but I'm here and I have to make do with whatever tools I have. Fish seems awesome but I saw no mention of a Windows (Cygwin port). I didn't know the difficulty of this task, so I set about to pass the first hurdle - compile Fish in Cygwin. So I went to this page: https://github.com/fish-shell/fish-shell/#building and I started installing the required dependencies. This is the final list of package installed: http://paste.ubuntu.com/5684738/ - I hope I have everything needed to build Fish. Anyway, I started the process: autoconf - OK ./configure - OK make - NOT OK make install - Didn't even reach this First error I got during make: g++ -g -O2 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-exceptions -Wall -DLOCALEDIR=\/usr/local/share/locale\ -DPREFIX=L\/usr/local\ -DDATADIR=L\/usr/local/share\ -DSYSCONFDIR=L\/usr/local/etc\ -DBINDIR=L\/usr/local/bin\-c -o builtin.o builtin.cpp In file included from builtin.cpp:397:0: builtin_set_color.cpp:15:20: fatal error: curses.h: No such file or directory compilation terminated. builtin: recipe for target `builtin.o' failed make: *** [builtin.o] Error 1 Ok, it couldn't find curses.h. Apparently it's not in the include path, so I hacked that: ln -s /usr/include/ncurses/curses.h /usr/include/ and I got this: g++ -g -O2 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-exceptions -Wall -DLOCALEDIR=\/usr/local/share/locale\ -DPREFIX=L\/usr/local\ -DDATADIR=L\/usr/local/share\ -DSYSCONFDIR=L\/usr/local/etc\ -DBINDIR=L\/usr/local/bin\-c -o builtin.o builtin.cpp In file included from builtin_set_color.cpp:15:0, from builtin.cpp:397: fallback.h:97:7: error: previous declaration of ‘char* tparm_solaris_kludge(char*, ...)’ with ‘C++’ linkage /usr/include/curses.h:820:63: error: conflicts with new declaration with ‘C’ linkage builtin: recipe for target `builtin.o' failed make: *** [builtin.o] Error 1 Looks bad - and I'm stuck here. Here's the gcc -v output - hope it helps: http://paste.ubuntu.com/5684749/ I'm willing to try out various builds and provide any debugging information needed if there's a chance of making Fish run under Cygwin. Thank you for your attention! :) _ Costin Caraivan -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get
Re: [Fish-users] Any chance for building/running Fish in Cygwin?
Make fails the first time -- just run make again. Something to do with basename and the man pages. I tested on a FULL install of cygwin. with EVERYTHING installed, except the stuff that errored out. On Wed, May 22, 2013 at 3:16 PM, Costin Caraivan costincarai...@gmail.comwrote: Hello, Is there any chance of this making it into the official Fish releases? At least on my system after patching things manually based on Stetsagg's patch Fish launched without any errors and so far it seems to run just fine. I can try to make a Cygwin package for Fish which will include the patch, if anyone's interested. Thank you very much for the patches! And of course, not everything is perfect in Cygwin land, I think I'm missing some settings. Initially I was missing getopt (that's part of a utils-linux Cygwin package), now I'm getting this when I try to autocomplete a command that doesn't exist on the system: fish: Unknown command 'x86' in command substitution called on standard input, I've tried to look through the .fish files, in my case from /url/local/etc/fish, but nothing seems relevant. This isn't a blocked, it's just annoying, so I can avoid it for now. The second thing is that the up and down arrows don't work (to cycle through history), I just get some nice boxes in the console. I'm guessing that's some sort of Cygwin terminal TERMCAP entry or something issue. Ctrl-C does the same thing but fortunately it cancels running jobs, so that's not a blocker either. _ Costin Caraivan -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Send in your prompts!
Here's mine -- mostly stock, but adds last command return code: function fish_prompt --description 'Write out the prompt' # Save our status set -l last_status $status set -l last_status_string if [ $last_status -ne 0 ] printf %s(%d)%s (set_color red --bold) $last_status (set_color normal) end # Just calculate these once, to save a few cycles when displaying the prompt if not set -q __fish_prompt_hostname set -g __fish_prompt_hostname (hostname|cut -d . -f 1) end if not set -q __fish_prompt_normal set -g __fish_prompt_normal (set_color normal) end set -l user_prompt '' switch $USER # Set our root colors, if we're root :) case root set user_prompt '#' if not set -q __fish_prompt_cwd if set -q fish_color_cwd_root set -g __fish_prompt_cwd (set_color $fish_color_cwd_root) else set -g __fish_prompt_cwd (set_color $fish_color_cwd) end end case '*' if not set -q __fish_prompt_cwd set -g __fish_prompt_cwd (set_color $fish_color_cwd) end end #printf '%s@%s %s%s%s# ' $USER $__fish_prompt_hostname $__fish_prompt_cwd (prompt_pwd) $__fish_prompt_normal #printf LAST STATUS STRING: $last_status_string \n printf '%s@%s %s%s%s%s%s ' $USER $__fish_prompt_hostname $__fish_prompt_cwd (prompt_pwd) $__fish_prompt_normal $user_prompt end function fish_title echo $_ ' ' (prompt_pwd) end On Sun, Aug 26, 2012 at 5:06 PM, Guilhem Saurel guil...@saurel.me wrote: 2012/8/26 ridiculous_fish corydo...@ridiculousfish.com Hello fellow fish fans, I'm working on a prompt editor, which will include a bunch of sample prompts that the user can preview and then use (or edit). I'd like to include real prompts contributed by real users, showing the range possible prompts. If you're willing, please send me the following: - Your fish_prompt function, or file if it contains multiple functions - A suggested short name for it, hopefully descriptive (Minimalist, Git Savvy ), or evocative (Lotus Blossom), or failing that, your name is fine (Richards) - If you like, an attribution line (John Doe's prompt - http://www.mysite.com;) You can send it directly to me at corydo...@ridiculousfish.com, or post it to the list if you want to strut your stuff. For the record, here's my prompt, which I'm calling Minimalist (but may change it if we get a bunch of minimalist prompts): function fish_prompt set_color $fish_color_cwd echo -n (basename $PWD) set_color normal echo -n ' ) ' end Thanks for any and all contributions! _fish -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users Hello, Here is mine ! Name: Nim Attribution line: Guilhem Nim Saurel − https://github.com/nim65s/dotfiles/ It changes differents colors when the return of the last command is not 0, when you are root, and/or when you are in ssh. It also detects when you are in a tty and use ASCII instead of UTF-8, and shows some informations about battery and background jobs when useful. - function fish_prompt and set retc green; or set retc red tty|grep -q tty; and set tty tty; or set tty pts set_color $retc if [ $tty = tty ] echo -n .- else echo -n '┬─' end set_color -o green echo -n [ if [ $USER = root ] set_color -o red else set_color -o yellow end echo -n $USER set_color -o white echo -n @ if [ -z $SSH_CLIENT ] set_color -o blue else set_color -o cyan end echo -n (hostname) set_color -o white #echo -n :(prompt_pwd) echo -n :(pwd|sed s=$HOME=~=) set_color -o green echo -n ']' set_color normal set_color $retc if [ $tty = tty ] echo -n '-' else echo -n '─' end set_color -o green echo -n '[' set_color normal set_color $retc echo -n (date +%X) set_color -o green echo -n ] if [ (acpi -a 2 /dev/null | grep off) ] echo -n '─[' set_color -o red echo -n (acpi -b|cut -d' ' -f 4-) set_color -o green echo -n ']' end echo set_color normal for job in (jobs) set_color $retc if [ $tty = tty
Re: [Fish-users] Copying and pasting long commands
And, for those not running osx: codemonkey@monkeytree ~/W/MonkeyTools alias pbcopy 'xsel --clipboard --input' codemonkey@monkeytree ~/W/MonkeyTools alias pbpaste 'xsel --clipboard --output' -Dave On Thu, Aug 23, 2012 at 3:56 AM, Jon Clayden jon.clay...@gmail.com wrote: Fair enough, but then why have the shell insert the ellipsis characters in the first place? Personally I would rather not have the visual continuation cue and be able to copy/paste simply. Long commands can be copy/pasted perfectly successfully under bash, so unless Terminal.app does something special in that case(?), it seems like it is something that the shell can influence. Admittedly I don't know the details of what goes on under the surface here, but I'm slightly surprised that this is so controversial. Jon On 23 August 2012 08:33, pants pa...@cs.hmc.edu wrote: On Thu, Aug 23, 2012 at 08:24:55AM +0100, Jon Clayden wrote: Surely it would be possible, however, for the shell to ignore the ellipsis/newline sequence, at the very least? Rewriting the command to remove it would be better still, but perhaps that's more tricky. Possible, but hardly desirable. In general, programming a shell to second-guess user input is not a good practice. Suppose I wanted to enter an ellipsis character followed by a newline in some script I was writing on the command line; with a change as you describe, this is no longer possible. pants. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Compilation on NetBSD
Looks good. On Fri, Aug 17, 2012 at 9:56 AM, Moritz Wilhelmy ml+f...@wzff.de wrote: Hello, During my work on the pkgsrc package of fish, I noticed the following problem: NetBSD has it's own curses implementation in which init_tabs evaluates to a macro expansion which is const. I therefore propose the following patch, which fixes the compilation on NetBSD. Best regards, Moritz --- screen.c.orig 2009-03-08 14:46:47.0 + +++ screen.c @@ -92,13 +93,14 @@ static int try_sequence( char *seq, wcha */ static int next_tab_stop( int in ) { + int itabs = init_tabs; /* Assume tab stops every 8 characters if undefined */ - if( init_tabs = 0 ) - init_tabs = 8; + if( itabs = 0 ) + itabs = 8; - return ( (in/init_tabs)+1 )*init_tabs; + return ( (in/itabs)+1 )*itabs; } /** -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Compilation on NetBSD
Except -- the fish version fixes init_tab . . . and now it will never be fixed. Was that side effect of the former version a requirement and/or optimization? -Dave On Fri, Aug 17, 2012 at 10:17 AM, David Frascone d...@frascone.com wrote: Looks good. On Fri, Aug 17, 2012 at 9:56 AM, Moritz Wilhelmy ml+f...@wzff.de wrote: Hello, During my work on the pkgsrc package of fish, I noticed the following problem: NetBSD has it's own curses implementation in which init_tabs evaluates to a macro expansion which is const. I therefore propose the following patch, which fixes the compilation on NetBSD. Best regards, Moritz --- screen.c.orig 2009-03-08 14:46:47.0 + +++ screen.c @@ -92,13 +93,14 @@ static int try_sequence( char *seq, wcha */ static int next_tab_stop( int in ) { + int itabs = init_tabs; /* Assume tab stops every 8 characters if undefined */ - if( init_tabs = 0 ) - init_tabs = 8; + if( itabs = 0 ) + itabs = 8; - return ( (in/init_tabs)+1 )*init_tabs; + return ( (in/itabs)+1 )*itabs; } /** -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Can't figure out how to update my shell
Just installing on top worked for me. (No un-install, just install again) -Dave On Tue, Jul 31, 2012 at 12:54 PM, Ceasar Bautista cbautista2...@gmail.comwrote: I downloaded my shell (using the Mac installer) just before the patch to the prompt disappearing on multi-line commands (Issue #239) and it's becoming a bit of pain so I want to update. The problem I'm having is that I can't quite figure out how. I tried reinstalling (which I'm guessing I did wrong) by first trying to just redownload the package, and reinstall, then by removing /usr/local/bin/fish and reinstalling, but neither worked. I can't find anything in the FAQ or documentation either. (For reference, I'm running on Mac OS X Lion.) Can someone please explain how I can update my shell? (And perhaps add it in the FAQ for future users?) Best, Ceasar Bautista -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] bzr completion (and other vcs?)
I'd love to see some mercurial toys, like the git and bzr ones I've seen . . . maybe I'll hack something together if I find some time. On Thu, Jun 21, 2012 at 6:16 PM, Dario Bertini berda...@gmail.com wrote: Hi, I recently started to use fishfish... I'm a bzr user (but obviously also an hg and git one) and I read a previous mail about it (I cannot reply to it since I wasn't subscribed to the list at the time) From the homepage, I assumed that the completion was done by reading the man pages on the fly... by looking into it I found out that actually there's the fish_update_completions builtin function to be called manually if you run it though, it'll create new completions for git: the problem is, those completions don't work out of curiosity, to see if it was feasible to adapt the mercurial completions for bazaar, I found out about the make_vcs_completions in the fishfish sources first thing: if some programs are already known to be better served by some other completions (like the ones for which the completions are generated with such a script), shouldn't it be better if fish_update_completions blacklisted git, hg, svn and such programs? btw, I then tried to use make_vcs_completions to generate bzr completions... but I got lots of errors like: fish: path_get_path( 'bzr' ) bzr: ERROR: No help could be found for 'bzr'. Please use 'bzr help topics' to obtain a list of topics. fish: proc::read_try('bzr $argv; ') I tried to run it with fish -d 3 but I can't understand what is going wrong... I also looked at the make_vcs_completions script itself, by checking it step by step and adding echo statements, but I got lost after line 100, when it seems that it's using a more-than-70 lines long string substitution (or at least, that unmatched single quote seems to be doing that) should make_vcs_completions be rewritten? (it's 2 years old) what is the best approach to get some nice autocompletion for bzr? other people interested out there? should some of this be reported as an issue on github? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] newline in prompt
When I type funced fish_prompt, and press the up arrow, my fish exits. If I use the left arrow, and scroll a lot, this works. Strangely enough, this does *not* happen if I run a new fish (i.e. $ fish) then do the funced. Maybe login shells can't edit the prompt? -Dave On Wed, Jun 13, 2012 at 12:13 AM, Elis Axelsson elis.axels...@gmail.comwrote: On 13 June 2012 04:34, Lee l...@bigdinosaur.org wrote: Just found the fishfish shell, and I'm excited about using it for my OS X and Linux boxes. However, I'm having trouble modifying the shell prompt to start with a newline. I've become accustomed to having each prompt prefaced by a blank line, in order to break up the constant visual flow of the terminal window. In bash, I just start $PS1 with a \n, but damned if I can figure out how to accomplish this in fishfish. Some searching reveals that others have had this issue in the past, but I'm unable to find if anyone worked out the solution. I know it seems nit-picky, but it's enough to keep me in bash unless I can figure it out. Anyone have any advice or suggestions? If you do, funced fish_prompt to get the editor open with the function. And add echo before the printf at the end of that function, it will print a newline for you. And echo is builtin so it's fast. And you can use funcsave to save your edits :) -- Elis etu Axelsson -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] default shell?
I've used it as my default shell for a couple of years now. The only issues I've seen are with globing (PEBKAC), and the old fish had some terminal / history weirdnesses. -Dave On Tue, Jun 12, 2012 at 1:57 AM, SanskritFritz sanskritfr...@gmail.comwrote: On Tue, Jun 12, 2012 at 8:45 AM, Gour g...@atmarama.net wrote: Now I wonder whether you recommend to set fish as default shell? (I'm on x86_64 Archlinux) I know some users who use fish as default shell, there are some things to do, but it is relatively painless. Read the comments here: https://aur.archlinux.org/packages.php?ID=43684 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] default shell?
On Tue, Jun 12, 2012 at 7:23 AM, Gour g...@atmarama.net wrote: On Tue, 12 Jun 2012 07:08:26 -0600 David Frascone d...@frascone.com wrote: I've used it as my default shell for a couple of years now. The only issues I've seen are with globing (PEBKAC), and the old fish had some terminal / history weirdnesses. Thanks. Let me try it... Oh -- some other notes: 1. Leave root alone -- too many things you install assume bourne compatibility. 2. set SHELL to be a bourne shell (i.e. /bin/sh or /bin/bash -- Otherwise embedded shells will get confused. (:shell commands in vim, etc) 3. Convert all your scripts (if you have them) to fish. This was something that I really liked about fish over Zsh. Zsh preaches to NOT use the shell syntax for scripts. Fish does not. That means that you get the wonderful fish syntax in your local scripts . . . I have very few bash scripts laying around anymore. Have fun! -Dave -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Announcing Open Beta for our fancy new fish fork
Seems VERY VERY fast. Command line completion is very clean (so far), and simply screams. Testing now on linux -- will test on OS X soon. -Dave On Wed, May 30, 2012 at 7:01 AM, Patrick patr...@spellingbeewinnars.orgwrote: Hi Again So I have it installed and I am giving it a go. I like it quite a lot and think it would be great for a primary shell. I tilt two monitors on their side. I don't have that much width on each screen, so I like to keep my prompt short, just :. I see there is a prompt function. Is there a variable to change this, or do I need to rewrite the function? I hope this is not too negative but the doxygen dependency was huge on my xubuntu system, 650M. Is it possible for someone to install it without doxygen? Isn't it just for documentation or does it provide the project functionality? Thanks again for all your hard work. Just curious, do you have a time estimate of how many hours this took you? -Patrick On 12-05-30 07:31 AM, Patrick wrote: Hi ridiculous_fish This looks like it would have been a lot of work! Thanks so much for doing this. I am just installing it now. I think the site is very good and I appreciate your sense of humour-Patrick -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Announcing Open Beta for our fancy new fish fork
The autosuggestions take a bit to get used to . . . they're kind of distracting. BUT: They do guess correctly a lot -- which is nice. The only thing I don't like so far is when it guesses almost right, the tab acts funny. For example: If you are in a directory with five entries: 1234 1235 1236 1237 and you type cd, it will autocomplete: cd 1236/ With the cursor on the one. If you then hit tab, the cursor will move to 123 so that you can choose which one to use. However, when I see the dir I want, for example, 1236, and hit enter, it instead tries to use cd 123 as the completion. Maybe I'm just doing it wrong . . . but, other than that, the suggestions rock -- I'm sure there's a hotkey to say yes -- I just haven't found it yet! -Dave On Wed, May 30, 2012 at 8:05 AM, Jan Kanis jan.c...@jankanis.nl wrote: Great to hear this! I already had a look at your C++ branch on gitorious some time ago and I was wondering what you were planning to do with it. I'll certainly give it a try. On Wed, May 30, 2012 at 11:43 AM, ridiculous_fish corydo...@ridiculousfish.com wrote: Hello fellow fish fans! I am ridiculous_fish, and I come bearing lungfuls of new life! Over the past year, I and my partner Siteshwar have been working on a fish fork. We've been modernizing fish's codebase, while adding some truly compelling features and improving performance. We've been living on this fork for months, and we think it's _awesome_. Compared to stock fish, our branch is noticeably faster and easier to maintain, and its new features have ruined me for all other shells. bash now tastes like cardboard. Our fork is now in Open Beta, and we'd like to invite you to try it out! We are interested in feedback and bug reports. We'd also like to start a discussion about our changes and whether/how to incorporate them into fish trunk (which we would very much like to do). Our changes are transformative and impact nearly every aspect of fish's code base, so it is not to be undertaken lightly. But our changes are also very compelling from the perspectives of both users and maintainers, and our months of living-on have given us a lot of confidence in them. Our branch is not only the best fish ever made; we think it's the best POSIX command line shell, period. Here's how to get it! Main page: http://ridiculousfish.com/shell/ Open beta page: http://ridiculousfish.com/shell/beta.html Release notes: http://ridiculousfish.com/shell/release_notes.html Gitorious page: https://gitorious.org/~ridiculousfish/fish-shell/fishfish The relevant git branch is fish_fish. Please share your thoughts, reactions, rants, raves, and bug reports on this list. If all goes well, we'll announce the Open Beta more widely in the upcoming week. A few teaser improvements (for a longer list, see the Release Notes above): - Autosuggestions (think URL fields in browsers) - 256 color support - Web-based configuration - Syntax highlighting is now multithreaded, so it doesn't cause stuttering typing on slow disks / filesystems - Overall performance is way better - It's all in (sane) C++. No more string_buffer_t, array_list_t, or hash_table_t, and no more halloc! -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Announcing Open Beta for our fancy new fish fork
I built from source and did ./configure --prefix=/usr to avoid conflict with my old fish in /usr/local. On Wed, May 30, 2012 at 9:14 AM, Peter Flood i...@whywouldwe.com wrote: For anyone who hasn't yet, run `fish_config` on a system with a web browser. Nice. The osx installer seems to have wiped out my previous version of fish that was in /usr/local/bin/fish, would be good if it could just move it aside if it exists already (or maybe it did and I just can't find it). Additionally, I'd like to be able to change the autosuggestions hotkey (right arrow) to something else. The docs say ' Left and right moves one character left or right' but doesn't mention anything about autocomplete. On 30/05/2012 10:43, ridiculous_fish wrote: Hello fellow fish fans! I am ridiculous_fish, and I come bearing lungfuls of new life! Over the past year, I and my partner Siteshwar have been working on a fish fork. We've been modernizing fish's codebase, while adding some truly compelling features and improving performance. We've been living on this fork for months, and we think it's _awesome_. Compared to stock fish, our branch is noticeably faster and easier to maintain, and its new features have ruined me for all other shells. bash now tastes like cardboard. Our fork is now in Open Beta, and we'd like to invite you to try it out! We are interested in feedback and bug reports. We'd also like to start a discussion about our changes and whether/how to incorporate them into fish trunk (which we would very much like to do). Our changes are transformative and impact nearly every aspect of fish's code base, so it is not to be undertaken lightly. But our changes are also very compelling from the perspectives of both users and maintainers, and our months of living-on have given us a lot of confidence in them. Our branch is not only the best fish ever made; we think it's the best POSIX command line shell, period. Here's how to get it! Main page: http://ridiculousfish.com/shell/ Open beta page: http://ridiculousfish.com/shell/beta.html Release notes: http://ridiculousfish.com/shell/release_notes.html Gitorious page: https://gitorious.org/~ridiculousfish/fish-shell/fishfish The relevant git branch is fish_fish. Please share your thoughts, reactions, rants, raves, and bug reports on this list. If all goes well, we'll announce the Open Beta more widely in the upcoming week. A few teaser improvements (for a longer list, see the Release Notes above): - Autosuggestions (think URL fields in browsers) - 256 color support - Web-based configuration - Syntax highlighting is now multithreaded, so it doesn't cause stuttering typing on slow disks / filesystems - Overall performance is way better - It's all in (sane) C++. No more string_buffer_t, array_list_t, or hash_table_t, and no more halloc! -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing listFish-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] fish_fish
Yeah, all my functions work fine. I agree .. is broken, but, since I've never used that, it didn't matter to me :) cd .. works just fine. -Dave On Wed, May 30, 2012 at 9:02 AM, Peter Flood i...@whywouldwe.com wrote: I created a .. function in ~/.config/fish/functions (I already have ..., etc) and it works. On 30/05/2012 13:16, Maxim Gonchar wrote: 2) I see that I can not now execute directories. I.e. I can not use '..' as command to go to the upper directory. Of course I can catch the event to handle it. But it doesn't colorize correct paths as green now. Is this feature completely deleted? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] .* expansion
Ahhh .. . didn't realize that. I just assumed it worked. :( -Dave On Wed, May 9, 2012 at 6:17 AM, Maxim Gonchar gma...@gmail.com wrote: Dave, do you want to say that your fish can expand character classes? Like [a-zA-Z]? Mine can not (: On Tue, 08 May 2012 22:07:56 +0400, David Frascone d...@frascone.com wrote: That looks good. I usually just do .[a-zA-Z]* :) On Fri, May 4, 2012 at 2:41 AM, Maxim Gonchar gma...@gmail.com wrote: Hi fishers, I've noticed that it is very uncomfortable to use wild cards to work with 'hidden' files and folders, because when expanded it always produces '.' and '..' directories, which normally are almost never needed for expansion. Consider the following example: you need to copy all the files and directories (including hidden) from one directory to another. You can not write cp -r dir/* dir/.* destination/ or cp -r dir/{,.}* destination/ because it will be also expanded to the dir/.., which means that cp will copy also the contents of the outer directory. I've failed to find an example, where you really need these '.' and '..' in expansion. Does anyone knows them? So I propose to remove '.' and '..' from '.*' expansion. If someone need them, he can add them manually with with {} syntax. regards, Maxim --**--** -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/**sfrnl04242012/114/50122263/http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ __**_ Fish-users mailing list Fish-users@lists.sourceforge.**net Fish-users@lists.sourceforge.net https://lists.sourceforge.net/**lists/listinfo/fish-usershttps://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] .* expansion
That looks good. I usually just do .[a-zA-Z]* :) On Fri, May 4, 2012 at 2:41 AM, Maxim Gonchar gma...@gmail.com wrote: Hi fishers, I've noticed that it is very uncomfortable to use wild cards to work with 'hidden' files and folders, because when expanded it always produces '.' and '..' directories, which normally are almost never needed for expansion. Consider the following example: you need to copy all the files and directories (including hidden) from one directory to another. You can not write cp -r dir/* dir/.* destination/ or cp -r dir/{,.}* destination/ because it will be also expanded to the dir/.., which means that cp will copy also the contents of the outer directory. I've failed to find an example, where you really need these '.' and '..' in expansion. Does anyone knows them? So I propose to remove '.' and '..' from '.*' expansion. If someone need them, he can add them manually with with {} syntax. regards, Maxim -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] fish on raspberry pi
If fish works on other big endian platforms, then it should work find on ARM. Has anyone tried fish on PPC, etc? -Dave On Sun, Feb 5, 2012 at 9:12 AM, Peter Flood i...@whywouldwe.com wrote: 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 ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- 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___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] errors when doing cd -
I fixed this bug a while back. Be sure and pull from one of the repos. Seq was broken on mac. -Dave On Fri, Feb 3, 2012 at 7:11 AM, Peter Flood i...@whywouldwe.com wrote: $ seq 0 1 0 On 03/02/2012 19:02, Jan Kanis wrote: I can't reproduce this on linux. The 'prevd' function gets called from the 'cd' function, but without any arguments, so the 'switch $argv[$i]' line should not be executed. What is the output of the command 'seq 0' on your system? It should not give any output at all. On Thu, Feb 2, 2012 at 16:48, Peter Flood i...@whywouldwe.com wrote: 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', 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 -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- 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 ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- 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___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] errors when doing cd -
So, my seq works, and I *thought* I checked it in. (Attaching now) It is in /usr/local/bin, and I could have modified it . . not sure :) I remember fixing it. Try this: $ type seq Then, $ file /wherever/seq/was/in/the/filesystem Make sure seq is a fish script text executable -- perhaps you accidentally installed some other broken version of seq? -Dave On Fri, Feb 3, 2012 at 8:50 AM, Peter Flood i...@whywouldwe.com wrote: I'm using the latest gitorious master, I pulled (no changes) and recompiled but still the same. Here's the latest commit when I run hg log changeset: 1869:74cfa0edf2a5 bookmark:master tag: default/master tag: tip user:Jan Kanis jan.c...@jan...nis.nl jan.c...@jan...nis.nl date:Tue Jan 31 01:38:20 2012 +0100 summary: Add stddef.h to util.c, so ptrdiff_t is defined in all environments David, are you using OS X, do you know which changeset you're using? Thx Peter On 03/02/2012 22:12, David Frascone wrote: I fixed this bug a while back. Be sure and pull from one of the repos. Seq was broken on mac. -Dave On Fri, Feb 3, 2012 at 7:11 AM, Peter Flood i...@whywouldwe.com wrote: $ seq 0 1 0 On 03/02/2012 19:02, Jan Kanis wrote: I can't reproduce this on linux. The 'prevd' function gets called from the 'cd' function, but without any arguments, so the 'switch $argv[$i]' line should not be executed. What is the output of the command 'seq 0' on your system? It should not give any output at all. On Thu, Feb 2, 2012 at 16:48, Peter Flood i...@whywouldwe.com wrote: 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', 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 -- 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- 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 ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users seq Description: Binary data -- 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___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] fishshell.org
I vote squatters! On Thu, Oct 20, 2011 at 1:26 AM, SanskritFritz sanskritfr...@gmail.comwrote: On Thu, Oct 20, 2011 at 9:02 AM, Martin Bähr mba...@email.archlab.tuwien.ac.at wrote: of course the domain is of no use unless someone can fix the dns, but do we want to let it expire and risk it getting picked up by squatters, or do we want to try to get axel to transfer the domain so that someone else can manage it? Is that really a question? :D -- The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Ciosco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] disown command in fish
Disown seems like an implementation of nohup. Try just using the nohup command: nohup firefox (Then exit the shell) -Dave On Tue, Jul 26, 2011 at 1:04 AM, Philipp Middendorf pmid...@gmx.net wrote: I don't know what that is supposed to do, but on my machine, it opens the program (in the foreground) and closes it when the terminal closes. This is not what I wanted to have. :) On Tue, 26 Jul 2011 08:48:26 +0900 Maxim Gonchar gma...@gmail.com wrote: Hi, you do not need disown in fish, because fish do it automatically. Just try the following fish -c 'leafpad' regards, Maxim On Monday 25 July 2011 23:48:53 Philipp Middendorf wrote: Hi I'm currently migrating to fish from bash and there's one thing that bothers me: In bash, I often used the disown command to not just send a job into the background but to detach it from the shell _entirely_. This means that closing the terminal doesn't close the program. For instance: firefox disown -a close terminal and I still have firefox open (-a to disown all background jobs). Is this possible in fish? I've found a mailing list post from 2008 that received no ansers. I don't know if anything has changed since... Regards Philipp -- Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Strange behavior, maybe?
Nothing on this? Guess I can start browsing the source . . . On Mon, Jul 11, 2011 at 11:29 AM, David Frascone d...@frascone.com wrote: So, I have several related functions that I've been storing in ~/.config/fish/functions: CreateCase.fish ArchiveCase.fish HostifyCase.fish Which contain functions CreateCase, ArchiveCase, and HostifyCase, respectively. And, I thought it would be much simpler to combine all three functions into one file: CaseManagement.fish But, when I do that, the file does not seem to be sourced. (Probably since there is no command, CaseManagement). Is there a different way I should be cleaning up my functions? -Dave -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] moving forward, what needs to be done (was: Axel (Was: Fish Shell adoption)
I'd be happy to add it to my hosting account. Costs me almost nothing (like $.82/month, for new shared domains) -Dave On Mon, Jul 11, 2011 at 12:56 AM, Terin Stock terinjo...@gmail.com wrote: I paid anynomously last year, which is why it hasn't gone to squatters yet. Gandi also allows putting another person in charge of the administration, without transferring the domain, which is what I'm trying to get Mike to do, if I could get ahold of him. (Been unsuccessful so far) -- #Terin Stock Undergraduate, Computer Science (CISE), University of Florida On Monday, July 11, 2011 at 12:53 AM, Martin Bähr wrote: On Sun, Jul 10, 2011 at 02:30:53PM -0600, Terin Stock wrote: I can almost guarentee we won't get it. After the domain expires, there's a month holding period, then it's released to the general public. Who do you think will get it first? Mere humans, or squatter network machine? fishshell.org lists axel as ADMIN-C, and since we now know that axel is still around and communicating, i think we should try to talk to him and either ask him if he can update the DNS to point it to fishshell.com or ask him to try to transfer the domain (i am not sure if he can do that without talking to mike). either option is better than letting it fall into squatters hands. gandi.net allows anonymous payments so as long as the DNS entry points into the right direction, the domain can be used. greetings, martin. -- cooperative communication with sTeam - caudium, pike, roxen and unix services: debugging, programming, training, linux sysadmin, web development -- pike programmer working in china community.gotpike.org foresight developer (open-steam|caudium).org foresightlinux.org unix sysadmin iaeste.at realss.com Martin Bähr http://www.iaeste.at/~mbaehr/ is.schon.org -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of 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-d2d-c2 ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of 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-d2d-c2___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Strange behavior, maybe?
So, I have several related functions that I've been storing in ~/.config/fish/functions: CreateCase.fish ArchiveCase.fish HostifyCase.fish Which contain functions CreateCase, ArchiveCase, and HostifyCase, respectively. And, I thought it would be much simpler to combine all three functions into one file: CaseManagement.fish But, when I do that, the file does not seem to be sourced. (Probably since there is no command, CaseManagement). Is there a different way I should be cleaning up my functions? -Dave -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of 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-d2d-c2___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] moving forward, what needs to be done
I think we should push a release. And, possibly, bump the version to a milestone of some kind to indicate the new ownership There have been several minor nits fixed. I need to document and/or fix a few more that I've noticed, where fish gets confused and spews text at me instead of completing properly :) -Dave On Fri, Jul 8, 2011 at 1:38 PM, Terin Stock terinjo...@gmail.com wrote: Yeah, I'm probably fine being a mirror (fair use), but once we start to go forward, could be interesting. A new logo would be nice, signify a new future for the project. I would also, personally, like to see a new release from the Fish Shell Maintainers or something, to show that we're not a dead fish. Do we have any bug fixes we could put together for a minor release? -- #Terin Stock Undergraduate, Computer Science (CISE), University of Florida On Friday, July 8, 2011 at 1: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 trademarked fishshell but the fish shell logo is trademarked by default. I can create one and mail thumbnail photos to the list? It might take some time though. We should probably purge the project of liabilities, if not for anything else, then for Terin's sake as he is hosting it. -Patrick On 11-07-08 12:59 PM, Terin Stock wrote: It's a standard Linux stack. Right now the main site is static content. I'm currently working on migrating to Redmine -- #Terin Stock Undergraduate, Computer Science (CISE), University of Florida On Friday, July 8, 2011 at 7:43 AM, Patrick Mc(avery wrote: So I don't actually know who is in control of the mailing list? Is it Terin? He is in control of fishshell.com right? What is fishshell.com running on in terms of a framework or is it all static content? Is there anyway to help Terin with the site? once we have a wiki again I would like to contribute but setting up the wiki may or may not be that simple. -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of 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-d2d-c2 ___ Fish-users mailing listFish-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/fish-users -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of 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-d2d-c2 ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of 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-d2d-c2 ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of 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-d2d-c2___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] moving forward, what needs to be done (was: Axel (Was: Fish Shell adoption)
On Fri, Jul 8, 2011 at 7:43 AM, Patrick Mc(avery patr...@spellingbeewinnars.org wrote: 4)There is some development being done on github but the site does not currently point there Please correct false statements... I believe the current repositories are on gitorious. -Dave -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of 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-d2d-c2___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] sudo vs fish - have to re-enter password
Same here -- works for me. And, iirc, it has always worked correctly for me. :) Try the current version(s). -Dave On Mon, Mar 7, 2011 at 9:25 AM, Myrddin Emrys myrd...@gmail.com wrote: I have to say that this has not been my experience. I am not using the latest fish however; I'm using the default version in the Ubunto repository. I have had no problems using sudo; it properly remembers and uses my password timeout. On Mon, Mar 7, 2011 at 09:58, Korek korek...@seznam.cz wrote: Hello, I have a problem with sudo vs fish when I use sudo, it asks me to enter password repeatedly, even thou I have sudo timeout set to 15 minutes. sudo works correctly under bash look at the following example: z@pc /t/zTemp ls a/ b/ z@pc /t/zTemp sudo ls [sudo] password for z: a b z@pc /t/zTemp sudo ls [sudo] password for z: a b z@pc /t/zTemp bash z@pc /tmp/zTemp $ sudo ls [sudo] password for z: a b z@pc /tmp/zTemp $ sudo ls a b fish, version 1.23.1 Any clues? thx -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Stupid PID question
This method worked best for me. Thanks a LOT guys! -Dave On Thu, Feb 24, 2011 at 12:10 PM, Stestagg stest...@gmail.com wrote: To clarify what I mentioned earlier, in my ~/.ssh/config file, I have things that look similar to: Host external_host User username Hostname 91.101.11.101 (- only needed if you can't do proper DNS from the DMZ machine, then put the IP here) ProxyCommand ssh gateway_machine nc %h 22 Many examples add a -w 1 option to the nc which will terminate the proxy if no activity happens for 1 second, but this can cause some annoying dropouts sometimes. i.e.: ProxyCommand ssh gateway_machine nc -w 1 %h 22 Thanks Steve On Thu, Feb 24, 2011 at 6:33 PM, David Frascone d...@frascone.com wrote: On Thu, Feb 24, 2011 at 10:40 AM, Jan Kanis j...@jankanis.nl wrote: On Thu, Feb 24, 2011 at 05:41, Martin Bähr mba...@email.archlab.tuwien.ac.at wrote: On Thu, Feb 24, 2011 at 01:58:06AM +0100, Jan Kanis wrote: - A command like 'fish -c echo %self; exec ssh user@somewhere' will start a new shell that will echo it's own pid and then exec ssh (keeping the pid). it does not appear to keep the pid if i run ssh -f -N -q Apparently. The -f tells ssh to fork, giving it a new pid. The parent ssh that asks for passphrases and such keeps the pid, but then forks off a child to handle the rest of the connection and exits itself. Right -- I'm experimenting with the proxy commands . . . I'll post what I end up using. -Dave -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Stupid PID question
My office just started doing DMZ nonsense, so I have to bounce through an intermediary host to grab a file, sort of like this: ssh -f -N -q -L :dmz_machine_ip:22 user@intermediary_machine_ip scp -P transformers.avi user@localhost:. So, my question is: How can I grab the PID of that first ssh process, so I can kill it (and drop the tunnel) after the scp? Thanks in advance, Dave -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Strange problem with scp
I remember having issues like this a long time ago, but I thought I had fixed them. Sadly, I forgot what the fix was. Suddenly, scp and rsync have stopped working for me: dfrascone@daves-mbp ~/Downloads scp com.backup42.desktop.jar codemon...@somehost.net: TERM environment variable not set. TERM environment variable not set. ^CKilled by signal 2. dfrascone@daves-mbp ~/Downloads Any ideas what changed? This used to work fine. Both hosts are running fish as the default shell. And, TERM is set to xterm-color on both hosts. At least, after a ssh, the remote term is still xterm-color. I've tried doing a 'set TERM xterm', but it doesn't seem to help. -Dave -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] source code repos
On Mon, Jan 17, 2011 at 12:08 PM, Laird Shaw nos...@creativeandcritical.net wrote: On 18/01/11 03:26, Jan Kanis wrote: And how many messages does the list receive for moderation? I'd guesstimate at between 10 and 20 per day, over 99% of which are spam. Oops -- guess I should have been helping to moderate :) -Dave -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] OSX terminal set tab title
The way you set the tab is outputting codes to standard out. But, fish controls the title, which is why it works in bash, but not in fish. If you use the script changes I sent, you can get your intention w/o writing directly to standard out. The -e option to echo enables the backslashes for the escape codes you were using. That works identically in fish. So, again, this has nothing to do with standard out, or -e, but has to do with the fact that fish controls the terminal. -Dave On Thu, Jan 13, 2011 at 1:57 AM, i...@whywouldwe.com i...@whywouldwe.comwrote: Hi David I want to set the title of my terminal tab, not output to stdout. I think the problem is that fish doesn't interpret the -e option the same way bash does. Thanks On 12/01/2011 21:50, David Frascone wrote: From http://fishshell.com/user_doc/index.html function fish_title echo foo end or, if you wanted to make it more dynamic, you could do something like this: function fish_title echo $my_title end Then just set $my_title in your script: set my_title Foo -Dave On Wed, Jan 12, 2011 at 2:14 AM, i...@whywouldwe.com i...@whywouldwe.comwrote: Using bash this puts 'Foo' as the title of the current terminal tab in OS X echo -n -e \033]0;Foo\007 but it doesn't work with fish ('-e \033]0;Foo\007' gets output instead), anyone know why or how to achieve this? Thanks -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] which not working
Why do you have to type /usr/bin/which? Is /usr/bin not in your path? If not, then that would describe your behavior. It works fine for me -- but -- /usr/bin IS in my path. -Dave On Tue, Dec 14, 2010 at 7:57 PM, i...@whywouldwe.com i...@whywouldwe.comwrote: which isn't working for me in fish but it's fine in bash bash$ which -a which /usr/bin/which bash$ fish Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish fish$ /usr/bin/which -a which fish$ any ideas? -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Current state of fish in gitorius
On Wed, Nov 17, 2010 at 6:46 AM, SanskritFritz sanskritfr...@gmail.comwrote: Hi I'm a big fan of fish, and plan to create an Archlinux package from the gitorius head. My question is, is the current head of the gitorius repo considered stable enough for everyday use? Thought I ask before I install it on my linux :D That's a good question. Most of the changes that have gone into the head have been bug fixes. The people on this list use fish for daily work, and the head is the result of people running into little issues. I don't know of any real feature work that has recently been done, so, I'd say, yes, the head is very stable. In the future, we (people who contribute to fish), should probably consider making development branches, if we decide on features that we would like to add. And, once this version has been vetted a bit, it wouldn't hurt to kick the version up a notch. -Dave -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Merge Request
I'm not sure of the right way to do it -- but I requested a merge on gitorious that will incorporate the changes I've made over the last year via github. Let me know if you need more comments / etc. -Dave -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Merge Request
Done -- there's a new merge request that can be line-item-veto'ed :) -Dave On Fri, Nov 5, 2010 at 9:02 AM, David Frascone d...@frascone.com wrote: I'll re-evaluate the larger one, and split it into smaller chunks, if I think the issues are still there. -Dave On Fri, Nov 5, 2010 at 8:54 AM, Grissiom chaos.pro...@gmail.com wrote: Hi David, On Fri, Nov 5, 2010 at 9:06 PM, David Frascone d...@frascone.com wrote: I'm not sure of the right way to do it -- but I requested a merge on gitorious that will incorporate the changes I've made over the last year via github. Let me know if you need more comments / etc. Thanks! But the commit 8cc7202 is too big that at least I would not like to merge. commit caa6e26 is OK for me. BTW, the null TERM bug has been fixed by my 6654fff37 commit(which inspired by your commit on github actually ;) ). and the parameter parser bug has been fixed by my 27df727c commit. -- Cheers, Grissiom -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Anyone building on OS/x?
I figured it out by downloading homebrew, and looking at the recipe. The magic was: --without-xsel -Dave On Thu, Nov 4, 2010 at 7:18 AM, Al Chou hotfusion...@yahoo.com wrote: I can't remember what I did to get it built on Tiger, but I totally believe Doxygen would install iconv for you. Plus most of the rest of the universe. Al On Nov 4, 2010, at 5:04 AM, Christopher Nilsson christop...@otherchirps.net wrote: Sorry, I've not a mac around... On my linux box, the iconv stuff seems to be rolled up in the libc6-dev package. Unsure how that maps to OSX. Hopefully someone else will know. Come to think of it though, I think I did trip over some iconv errors like this, until I installed ncurses + doxygen. One of those must have pulled down the libc6-dev dependency for me. Have you got those installed as well? Cheers, Chris. On 4 November 2010 03:08, David Frascone d...@frascone.com d...@frascone.com wrote: I've been building from Ben Hoskings repo over on github, but, I wanted to grab the current stuff, so I went over and cloned from gitorious. That repo doesn't seem to build for me -- configure can't seem to find iconv. Ideas? checking for library containing gettext... (cached) -lintl checking for library containing iconv_open... (cached) no configure: error: Could not find an iconv implementation, needed to build fish -Dave -- Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-novhttp://p.sf.net/sfu/hpdev2dev-nov ___ Fish-users mailing list Fish-users@lists.sourceforge.netFish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users https://lists.sourceforge.net/lists/listinfo/fish-users -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book Blueprint to a Billion shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Anyone building on OS/x?
I've been building from Ben Hoskings repo over on github, but, I wanted to grab the current stuff, so I went over and cloned from gitorious. That repo doesn't seem to build for me -- configure can't seem to find iconv. Ideas? checking for library containing gettext... (cached) -lintl checking for library containing iconv_open... (cached) no configure: error: Could not find an iconv implementation, needed to build fish -Dave -- Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-nov___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] wiki access (was: source code repos)
I'd be happy to host the domain with my hosting account. Let me know :) -Dave On Wed, Oct 13, 2010 at 12:58 AM, Martin Bähr mba...@email.archlab.tuwien.ac.at wrote: On Fri, Oct 08, 2010 at 04:12:28PM +0200, Jan Kanis wrote: As far as I'm aware the original owner of fish (Axel Liljencrantz) kind of vanished and nobody reading this list has write access to the darcs repo. Just to check: Is there anyone reading this who has access to either the darcs repository, the wiki on fishshell.org, or the fish shell sourceforge.org project??? looking through the edist history of the wiki i found BeniCherniavsky and PhilipGanchev who are still active on the list. beni last worked on the wiki in august (unless i missed a page) other usernames i could find are: GeorgeBashi, StartFragment, Smar, LacieTugwell, JaquelynNyce, OrvalMerriman... greetings, martin. -- cooperative communication with sTeam - caudium, pike, roxen and unix searching contract jobs: debugging, programming, training and administration -- pike programmer working in china community.gotpike.org foresight developer (open-steam|caudium).org foresightlinux.org unix sysadminiaeste.at realss.com Martin Bähr http://www.iaeste.at/~mbaehr/ is.schon.org -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] fishshell.org expired?
Ok -- the site is up, but DNS is broken. Probably a broken cache server somewhere. The whois info is correct. And, if you go right to the source from the whois, dns works: dfrasc...@daves-mbp ~/W/C/I/I/fio-bugreport-20100917.121443-iN5456 dig @ ns1.vireo.net fishshell.org ; DiG 9.6.0-APPLE-P2 @ns1.vireo.net fishshell.org ; (1 server found) ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 9843 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;fishshell.org. IN A ;; ANSWER SECTION: fishshell.org. 3600 IN A 174.133.174.138 I've tested both ns1 and ns2.vireo.net. But, if you just try to resolve fishshell.org, it's broken. Finally I added 174.133.147.138 to my /etc/hosts, and, the web page loads just fine. So -- DNS is broken at the moment, and it looks like a caching thing. But, the web page is fine. -Dave P.S. I have no idea if the domain is going bye bye, though. On Thu, Sep 23, 2010 at 9:40 AM, Christopher Nilsson christop...@otherchirps.net wrote: On 23 September 2010 23:28, David Frascone d...@frascone.com wrote: Since it's only 2010, I'm pretty sure it shows that the domain is fine for another year. That's what I thought at first, but a little googling about auto renew periods on domains gives statements like: Upon your domain reaching the 'auto-renew' period, the Registry adds one additional year to your term. However, You have not paid for this year. So if after 45 days and you still have not paid the registrar then your domain will be deleted and the extra year will disappear. So it may be that fishshell.org is now within this 45 day countdown to doom. :( Of course, I only look at this domain registration stuff once in a blue moon, so I'd love to be wrong on this. - Chris. -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] fishshell.org expired?
Oops -- my bad :) On Thu, Sep 23, 2010 at 10:14 AM, Jan Kanis j...@jankanis.nl wrote: Ah, I can connect now. There's a typo in Davids mail: 174.133.147.138 - 174.133.174.138 Jan -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Globbage?
On Sat, Jun 5, 2010 at 1:51 PM, Beni Cherniavsky-Paskin c...@users.sf.netwrote: a slight problem with this is that if the user expects a match, but the match fails because of a typo, then it will be quoted, but since the user didn't want quotes he or she has to go back to remove the quote and correct the typo. Right, that's the part where syntax highlight (A) helps - the user should see it in red before he presses TAB. I've found that I type WAY faster than my eyes process syntax highlighting. By the time I notice it's red, return has already been pressed. -Dave -- 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://p.sf.net/sfu/thinkgeek-promo___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] This probably isn't a fish problem . . but . .
I have a path add function that displays a warning if it tried to add a path that does not exist. But, that warning causes rsync to fail, when doing rsync over ssh, because it can't parse the warning. Is there any simple way for me to tell, in my config.fish, that it is a non-interactive terminal, and not display the warning? -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Fixed a little crash
fish set -x TERM # Kaboom -- constant crashes This patch fixes: codemon...@daves-mbp ~/W/fish git diff diff --git a/src/reader.c b/src/reader.c index d0da730..522b702 100644 --- a/src/reader.c +++ b/src/reader.c @@ -624,7 +624,7 @@ void reader_write_title() don't. Since we can't see the underlying terminal below screen there is no way to fix this. */ - if( !term || !contains( term, Lxterm, Lscreen, Lnxterm, Lrxvt ) + if( term !contains( term, Lxterm, Lscreen, Lnxterm, Lrxvt ) ) { char *n = ttyname( STDIN_FILENO ); Basically, if term is null, because of the or, it was still entering contains, that asserted on term not being null. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] How to contribute patches?
I've been e-mailing them here -- is that the preferred method? I'm not a darcs-head, so I don't know if I should be doing something different darcs wise :) -Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Globbage?
Am I the only one who likes filename globbing, ONLY when it works? One of my biggest annoyances with zsh was the default mode of globbing everything. And, zsh almost has me trained to glob properly with fish . . . almost. But, in zsh, there IS a way to turn it off -- is there in fish? For example, let's try to scp a file, by mask, from a server at my house: First, let's create it: codemon...@daves-mbp ~ ssh someserver touch someFile.something codemon...@daves-mbp ~ Now, let's try to scp it with fish. codemon...@daves-mbp ~ scp someserver:someFile* . fish: Warning: No match for wildcard 'someserver:someFile*'. The command will not be executed. scp someserver:someFile* . ^ Now, let's try to scp it with zsh: codemon...@daves-mbp ~ zsh 1001:codemon...@daves-mbp ~ % scp someserver:someFile* . zsh: no matches found: someserver:someFile* Finally, let's do it with bash -- how beautiful! 1002:1-codemon...@daves-mbp ~ % bash codemon...@daves-mbp ~ $ scp someserver:someFile* . someFile.something100%0 0.0KB/s 00:00 codemon...@daves-mbp ~ $ In zsh, there is some setting you can use to make things work. And, you can also do: noglob zsh someserver:someFile* . Besides training myself to always use quotes, i.e.: 'scp someserver:someFile* .' is there a better way to make globbing just work, as it does in bash? I.e. when no matches are found, assume that the user wasn't globbing? -Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] help in OSX
That's two seperate problems: 1) not properly quoting the URL so that the hash is interpreted as a comment 2) bad installation confused about the location of the help files. -Dave Sent from my iPhone On Apr 4, 2010, at 5:05 PM, Philip Ganchev phil.ganc...@gmail.com wrote: 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 ~ w3m '/usr/share/doc/fish/commands.html#complete' # Works ~ fish --version fish, version 1.23.1 On Sun, Apr 4, 2010 at 3:00 AM, Michael Lachmann lachm...@eva.mpg.de wrote: On my machine, calling help only opens the main help page, and does not go to the specific page. So: help complete open the help page commands.html, instead of commands.html#complete (I have BROWSER set to open) [...] Works, but maybe there is a more elegant solution? --- --- --- - Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
A -- I just looked, and there is a /usr/bin/gseq, which does the same thing. So, it does exist, it's just named differently :) -Dave On Sat, Apr 3, 2010 at 3:17 PM, Isaac Dupree m...@isaac.cedarswampstudios.org wrote: On 04/03/10 10:10, David Frascone wrote: I'm not sure I understand your point. Are you saying that seq should have been implemented with bash instead of fish? Or bash instead of bc? Or that we shouldn't use fish at all, but use bash instead? I know in the man pages of zsh they say that zsh is a command prompt and strictly differentiate command prompts from scripting languages, citing security isseus, code coverage, and collective knowledge as reasons for leaving bash around for scripts. I do feel the same way about fish, but, without understanding your point, I'm not sure if I've addressed your comments. eh, I was just rantingActually I am confused by why there isn't any official version of 'seq' for Mac OS X. I think one should exist. -Isaac -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
Seq was installed by fish, and has the bug unless you've grabbed my tree or applied my patches. -Dave Sent from my iPhone On Apr 3, 2010, at 8:04 PM, Rick Cogley rick.cog...@gmail.com wrote: On my OS X 10.6.3, doing a ‘which' it shows there’s a seq and a gseq. /opt/local/bin/seq /opt/local/bin/gseq r...@rcmbp /o/l/bin# /opt/local/bin/seq 10 -1 1 fish: invalid option -- 1 r...@rcmbp /o/l/bin# /opt/local/bin/gseq 10 -1 1 10 9 8 7 6 5 4 3 2 1 For whatever reason, I get the invalid option error from seq but not from gseq. Regards, Rick -- Rick Cogley Mobile: 090-9959-5452 (Outside Japan, remove 0. +81-3-...) --- --- --- - Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
Right. I was in the same boat. Use my patch and the fish installed seq will work for you. -Dave Sent from my iPhone On Apr 2, 2010, at 4:52 AM, Michael Lachmann lachm...@eva.mpg.de wrote: The seq that I use is /sw/bin/seq, which seems to have been installed by fish: --- #!/usr/bin/env fish # # Fallback implementation of the seq command # # seq. Generated from seq.in by configure. set -l from 1 . . . --- The error (fish: invalid option -- 1) seems to be generated before the script is ever called, by fish itself. So, when the script is invoked, fish is called, with the arguments (10 -1 5), and it generates the error. I think when fish is invoked for a script, it shouldn't parse the arguments that are meant for the script... Michael On 2 Apr 2010, at 8:09, Isaac Dupree wrote: On 04/02/10 01:31, David Frascone wrote: Found and fixed. There were several issues. First, most people who type seq are really running seq on their host. Fish will only use the builtin if it doesn't find it locally. Use 'seq --version' to see what I mean. of course seq is /usr/bin/seq ! (or wherever it is on your path.) What does it have to do with Fish? How can Fish have a possibly-a-builtin, possibly-not?(for me, 'type seq' just says 'seq is /usr/bin/seq' ...) Isn't it against Fish's philosophy to duplicate external tools that don't need to be built into a shell? Is Mac OS X 'seq' broken, under-featured, (or nonexistent?)? I would be unsurprised. In 10.3 (the last version I used regularly), I know they shipped a version of 'find' that enjoyed segfaulting (or some weird error, I forget exactly) when you forgot that their version of the 'find' command didn't support omitting the path bit (you had to pass '.'). Admittedly, I think they just copied the tools from BSD, but that doesn't mean they were good tools... -Isaac --- --- --- - Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users --- --- --- - Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
Seq does not exist on OS X, it seems. Personally I've never used it. The patch only fixes the version installed by fish, so, should have no side effects at all! -Dave Sent from my iPhone On Apr 2, 2010, at 2:09 AM, Isaac Dupree m...@isaac.cedarswampstudios.org wrote: On 04/02/10 01:31, David Frascone wrote: Found and fixed. There were several issues. First, most people who type seq are really running seq on their host. Fish will only use the builtin if it doesn't find it locally. Use 'seq --version' to see what I mean. of course seq is /usr/bin/seq ! (or wherever it is on your path.) What does it have to do with Fish? How can Fish have a possibly-a-builtin, possibly-not?(for me, 'type seq' just says 'seq is /usr/bin/seq' ...) Isn't it against Fish's philosophy to duplicate external tools that don't need to be built into a shell? Is Mac OS X 'seq' broken, under-featured, (or nonexistent?)? I would be unsurprised. In 10.3 (the last version I used regularly), I know they shipped a version of 'find' that enjoyed segfaulting (or some weird error, I forget exactly) when you forgot that their version of the 'find' command didn't support omitting the path bit (you had to pass '.'). Admittedly, I think they just copied the tools from BSD, but that doesn't mean they were good tools... -Isaac --- --- --- - Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
What OS are you using? Also, Ben has not pulled my changes yet, so, you can either apply my patches by hand, or pull from my tree: git clone git://github.com/CodeMonk/fish.git -Dave On Fri, Apr 2, 2010 at 7:07 AM, Michael Lachmann lachm...@eva.mpg.dewrote: I tried to download using git, but I'm getting an error, and I'm not sure what I did wrong. I did this: git clone git://github.com/benhoskings/fish cd fish ./configure make sudo make install but, calling fish gives me an error: ~/D/f/fish /usr/local/bin/fish fish: Job 1, '/usr/local/bin/fish' terminated by signal SIGBUS (Misaligned address error) ? On 2 Apr 2010, at 13:03, David Frascone wrote: Right. I was in the same boat. Use my patch and the fish installed seq will work for you. -Dave Sent from my iPhone On Apr 2, 2010, at 4:52 AM, Michael Lachmann lachm...@eva.mpg.de wrote: The seq that I use is /sw/bin/seq, which seems to have been installed by fish: --- #!/usr/bin/env fish # # Fallback implementation of the seq command # # seq. Generated from seq.in by configure. set -l from 1 . . . --- The error (fish: invalid option -- 1) seems to be generated before the script is ever called, by fish itself. So, when the script is invoked, fish is called, with the arguments (10 -1 5), and it generates the error. I think when fish is invoked for a script, it shouldn't parse the arguments that are meant for the script... Michael On 2 Apr 2010, at 8:09, Isaac Dupree wrote: On 04/02/10 01:31, David Frascone wrote: Found and fixed. There were several issues. First, most people who type seq are really running seq on their host. Fish will only use the builtin if it doesn't find it locally. Use 'seq --version' to see what I mean. of course seq is /usr/bin/seq ! (or wherever it is on your path.) What does it have to do with Fish? How can Fish have a possibly-a- builtin, possibly-not?(for me, 'type seq' just says 'seq is /usr/bin/ seq' ...) Isn't it against Fish's philosophy to duplicate external tools that don't need to be built into a shell? Is Mac OS X 'seq' broken, under-featured, (or nonexistent?)? I would be unsurprised. In 10.3 (the last version I used regularly), I know they shipped a version of 'find' that enjoyed segfaulting (or some weird error, I forget exactly) when you forgot that their version of the 'find' command didn't support omitting the path bit (you had to pass '.'). Admittedly, I think they just copied the tools from BSD, but that doesn't mean they were good tools... -Isaac -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
On Fri, Apr 2, 2010 at 10:06 AM, Michael Lachmann lachm...@eva.mpg.dewrote: Thanks! I got your version now. git seems pretty nice. Anyway, the problem was in config.h - I have to comment out the HAVE_REALPATH_NULL: include/config.h:/*#define HAVE_REALPATH_NULL 1*/ I'm using OSX 10.5.8, I don't know why my realpath can't handle NULL. I think two additional fixes are needed: 1. in kill.c, add the option '-n' to echo, so that fish doesn't add an extra newline to what's copied to the buffers. Doh! I wondered what was causing that -- my bad. I'll fix push it. 2. in fish.c add + to the getopt: #define GETOPT_STRING +hilnvc:p:d: That tells fish to stop reading arguments when it encounters a non-option. That caused a bug in seq, but it'll cause a bug in any fish script that has to accept options or negative numbers. Will fix that too. (fixing now) -- done. You can do a git pull now. -Dave Michael On 2 Apr 2010, at 15:53, David Frascone wrote: What OS are you using? Also, Ben has not pulled my changes yet, so, you can either apply my patches by hand, or pull from my tree: git clone git://github.com/CodeMonk/fish.git -Dave On Fri, Apr 2, 2010 at 7:07 AM, Michael Lachmann lachm...@eva.mpg.de wrote: I tried to download using git, but I'm getting an error, and I'm not sure what I did wrong. I did this: git clone git://github.com/benhoskings/fish cd fish ./configure make sudo make install but, calling fish gives me an error: ~/D/f/fish /usr/local/bin/fish fish: Job 1, '/usr/local/bin/fish' terminated by signal SIGBUS (Misaligned address error) ? On 2 Apr 2010, at 13:03, David Frascone wrote: Right. I was in the same boat. Use my patch and the fish installed seq will work for you. -Dave Sent from my iPhone On Apr 2, 2010, at 4:52 AM, Michael Lachmann lachm...@eva.mpg.de wrote: The seq that I use is /sw/bin/seq, which seems to have been installed by fish: --- #!/usr/bin/env fish # # Fallback implementation of the seq command # # seq. Generated from seq.in by configure. set -l from 1 . . . --- The error (fish: invalid option -- 1) seems to be generated before the script is ever called, by fish itself. So, when the script is invoked, fish is called, with the arguments (10 -1 5), and it generates the error. I think when fish is invoked for a script, it shouldn't parse the arguments that are meant for the script... Michael On 2 Apr 2010, at 8:09, Isaac Dupree wrote: On 04/02/10 01:31, David Frascone wrote: Found and fixed. There were several issues. First, most people who type seq are really running seq on their host. Fish will only use the builtin if it doesn't find it locally. Use 'seq --version' to see what I mean. of course seq is /usr/bin/seq ! (or wherever it is on your path.) What does it have to do with Fish? How can Fish have a possibly-a- builtin, possibly-not?(for me, 'type seq' just says 'seq is /usr/bin/ seq' ...) Isn't it against Fish's philosophy to duplicate external tools that don't need to be built into a shell? Is Mac OS X 'seq' broken, under-featured, (or nonexistent?)? I would be unsurprised. In 10.3 (the last version I used regularly), I know they shipped a version of 'find' that enjoyed segfaulting (or some weird error, I forget exactly) when you forgot that their version of the 'find' command didn't support omitting the path bit (you had to pass '.'). Admittedly, I think they just copied the tools from BSD, but that doesn't mean they were good tools... -Isaac -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got
Re: [Fish-users] Fixing title setting in OS X
On Fri, Apr 2, 2010 at 1:23 PM, Isaac Dupree m...@isaac.cedarswampstudios.org wrote: as you wish... I think conditional compilation for accessing Linux vs. Darwin /dev/ filenames makes a ton of sense. (Or use a C if() and a system-call that tells you which system it is, if you wish, if such a thing exists... it's conventional to use conditional-compilation!) But you'll have to tell me, what is the exact naming convention that Darwin/OSX uses? (for example, is /dev/tty1 a device-name on Darwin, or not? If not, then we can tell the difference just based on the names, with just a small bit of coding.) Good point: Darwin is using: codemon...@daves-mbp ~/dotfiles tty /dev/ttys015 I think ttys may be safe to use! I suppose special fish environment variables could be used... make sure that they're initialized correctly for each system though, even if you share ~/.config/fish/ between a Mac and a Linux system and go back and forth... and it would clearly be just as much conditional as compiling it into the C code. And I can tell that you're not engineering with weird hackers on weird embedded Linux setups in mind, so this configurability would probably not be useful even for dealing with that. So, given the ttys difference -- think we should go with an env setting, or a quick fix that works for Darwin? I need to get some virtual machines set up anyway, I'll try to set up a BSD one too, to see if that breaks. . . -Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Fixing title setting in OS X
On Fri, Apr 2, 2010 at 2:17 PM, Isaac Dupree m...@isaac.cedarswampstudios.org wrote: On 04/02/10 13:34, David Frascone wrote: So, given the ttys difference -- think we should go with an env setting, or a quick fix that works for Darwin? just use the appropriate check for ttys in the code. And make sure that you add a comment for what each string-check is checking for (e.g. Darwin terminals, Linux ptys, Linux console terminals... it's a dark area of Unix, so just be clear enough that people can go search the internet to learn more if they need to fix it or something). Ok -- code done. Seems to work well on OS X. http://github.com/CodeMonk/fish/commit/e11e78dfd762b80ccd4172a740e38fee0dc2c1e0 I need to check out a linux tree from darcs and apply these changes to make sure I'm not breaking anything . . . looks much cleaner though. Since tty is a substring of ttys, there had to be a nested check, but, seems pretty obvious by the comments. (If not, let me know, and I'll be even more verbose) -Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Temporary functions?
On Fri, Apr 2, 2010 at 6:07 PM, Philip Ganchev phil.ganc...@gmail.comwrote: On Thu, Apr 1, 2010 at 10:08 AM, David Frascone d...@frascone.com 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_path Or is there an easier way to make a function that is non-global in scope? I think you should just erase it. There is no way to define a non-global function, as far as I know. Is there a better way than a function to do what I want? (Uniquely add directories to my path)? -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Uniquely add to path?
I like the third function . . .. but I'd do a -d $x, since it should be a directory :) -Dave On Fri, Apr 2, 2010 at 7:15 PM, Philip Ganchev phil.ganc...@gmail.comwrote: On Thu, Apr 1, 2010 at 9:46 AM, David Frascone d...@frascone.com 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) path=(/foot/bin $path) You will NOT have two /foo/bin(s) in your path. Is there an equivalent way to do this in fish? Not that I know of. Fish is designed to have a minimal set of builtins that are as orthogonal as possible. But it might be useful to define a function like: function varuniq --description Return the unique arguments, merging to the first occurrence of a word. for x in $argv; if not contains $x $ret set ret $ret $y end end end Then use it like this: set PATH (varuniq $PATH /home/joe/bin home/joe/src) Or define: function typeset set rest argv[(seq 2 (count $argv))] set $argv[1] (varuniq $argv[1] $rest) end Or even: function path for x in argv if test -f $x and not contains $PATH $x set PATH $PATH $x end end end -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Does anyone use fish as their #1 shell (OS/X)?
I can build from source now, and I've been sending patches to Ben Hasting's tree, that is VERY OS X friendly: http://github.com/benhoskings/fish Speaking of which, I need to make my own clone . . . time to learn git a little better :) And, I've made it my daily shell again . . . it seems MUCH More usable than a year ago when I tried it last. And, I've finally gotten off of my lazy rear end and started fixing things that annoy me. I'll take a stab at making the select buffer configurable under OS X later this week. -Dave On Thu, Apr 1, 2010 at 8:37 AM, chombee chom...@lavabit.com wrote: I use fish as my primary shell on my linux (ubuntu and debian machines) and it works just fine. Fish just works exactly as I want by default, whereas any other shell (e.g. zsh) would require many hours of configuration and even then it wouldn't quite be fish. So it works very well for me, I don't have any problems. But fish seems to have issues on BSD and on non-x86 non-32bit architectures On Tue, Mar 30, 2010 at 03:14:56PM -0400, David Frascone wrote: I had to quit using fish, due to constant script incompatibilities. I guess some script authors are too lazy to add hash-bang-bash to the top of their scripts . . . Has anyone had any success making fish their real new home? Oh -- and I also had some issues with the select bug that was posted here a while ago, but is still not patched :( -Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Very cool stuff in functions
Ok -- I have to say, the behavior of ~/.config/fish/functions just rocks. I have this as my function for ls . . . and it overwrites itself after the first call to a simpler function: # # Sorted ls (by size) # # Set the proper ls based on the OS set OS (uname) switch $OS case Linux function lsort --description List files sorted by size command ls --color=auto --sort=size -lr $argv end case Darwin function lsort --description List files sorted by size command ls -lSGr $argv end end Way more graceful than using a global config file! I really like that! Also easily extensible. Much better than my previous config file jungle. Working on my editors and such now. This is blowing away aliases! -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] pasteboard/clipboard in OSX
I'm using the normal mac terminal -- from the console, not ssh'ed in. And, I have not messed with the fish bindings . . .. . let me check. Yup - \ck is kill-line. And, that function in kill.c does not get called. On Thu, Apr 1, 2010 at 4:39 PM, michael mlachm...@gmail.com wrote: On 1 Apr 2010, at 21:18, David Frascone wrote: I'm not sure this would work as expected -- at least not in the normal terminal windows. It seems like ctrl-k is being processed by the terminal or os itself, not by fish. i.e. kill_add is *not* being called when I press ctrl-k. Strange... it does work for me. But \ck is bound to kill-line? Maybe that is why I'm having problems with ctrl-y. How come your ctrl- k/ctrl-y are processed by the terminal? What terminal are you using? Michael -Dave On Wed, Mar 31, 2010 at 4:28 AM, michael mlachm...@gmail.com wrote: Hi, Since on OSX the X11 server is not always running, it would be better to sync the killring with the pasteboard instead of the X11 clipboard. That is very easy to accomplish: in kill.c: That is actually very easy to fix: in kill.c:99c99 wchar_t *cmd = wcsdupcat(Lecho -n , escaped_str, L| pbcopy ); --- wchar_t *cmd = wcsdupcat(Lecho , escaped_str, L| xsel -b ); One should do a conditional, so that this is only called in OSX, or even have it configurable... Michael -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] pasteboard/clipboard in OSX
On Thu, Apr 1, 2010 at 7:40 PM, Michael Lachmann lachm...@eva.mpg.dewrote: That is strange. I'm using the regular terminal, too. On OS/X 10.5.8 As far as I understand, if kill-line is called, then kill_add() has to be called, too. Could it be because fish is my login shell? If what you say is right, i.e. the line editing is not controlled by fish, then if you rebind \ck to something else, it will not affect what happens when you press ctrl-k. Maybe it's a snow leopard thing? I'll play with it more and let you know what I figure out! -Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] pasteboard/clipboard in OSX
Ok -- all done. I have it working. I was completely wrong about the ctrl-k being grabbed by the OS. Instead, xsel wasn't found, so huge chunks of the code weren't being called. I'm attaching a diff of my changes (also here: http://github.com/CodeMonk/fish/commit/92afb3ea1d72365e0034e55046570fb3cf034bc5), but, in a nutshell, here's what I've done. 1. Since has_xsel was being called on EVERY cut, I made it only check the path once, and cache the result in a static variable. So, should be a bit faster now. Only downside is, if you install xsel later, you'll need to respawn a new shell. I think the behavior is better, but, feel free to disagree and rip it out :) 2. The environment variable FISH_CLIPBOARD_CMD, if set, will be used to set the system clipboard. You use it like this: set -x FISH_CLIPBOARD_CMD |pbcopy Enjoy! -Dave On Thu, Apr 1, 2010 at 9:21 PM, David Frascone d...@frascone.com wrote: On Thu, Apr 1, 2010 at 7:40 PM, Michael Lachmann lachm...@eva.mpg.dewrote: That is strange. I'm using the regular terminal, too. On OS/X 10.5.8 As far as I understand, if kill-line is called, then kill_add() has to be called, too. Could it be because fish is my login shell? If what you say is right, i.e. the line editing is not controlled by fish, then if you rebind \ck to something else, it will not affect what happens when you press ctrl-k. Maybe it's a snow leopard thing? I'll play with it more and let you know what I figure out! -Dave kill.c.diff Description: Binary data -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Fixing title setting in OS X
I'm not sure why it was limiting terminals with tty in the name -- that seems REALLY restrictive to me. This diff fixes things for OS X, but I'm sure I've broken something else. Any ideas? Maybe an environment variable override? Maybe if FISH_FORCE_TITLE is set? -- diff --git a/src/reader.c b/src/reader.c index 426f06c..223f554 100644 --- a/src/reader.c +++ b/src/reader.c @@ -633,10 +633,9 @@ void reader_write_title() return; } - if( strstr( n, tty ) || strstr( n, /vc/) ) + if( /* strstr( n, tty ) || */ strstr( n, /vc/) ) return; - } title = function_exists( Lfish_title )?Lfish_title:DEFAULT_TITLE; -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
I can get repeatable failed behavior . . but I can't seem to figure out where it's evaluating that option . . . it's very strange. codemon...@daves-mbp ~/W/fish fish -c 'seq 10 -1 5' fish: invalid option -- 1 codemon...@daves-mbp ~/W/fish fish -c 'seq -- 10 -1 5' open: No such file or directory codemon...@daves-mbp ~/W/fish Now the really cool part . . if I create the file, it fails silently: touch -- '--' fish -c 'seq -- 10 -1 5' Output from dtruss (I put the string testing into the file): 72372/0x27e1a2: open(--\0, 0x0, 0xFC080) = 4 0 72372/0x27e1a2: write(0x3, BARRIER\n\0, 0x8) = 8 0 72359/0x27e17a: select(0x4, 0x7FFF5FBFF7E0, 0x7FFF5FBFF760, 0x0, 0x0) = 1 0 72359/0x27e17a: read(0x1, BARRIER\n\0, 0x400) = 8 0 72359/0x27e17a: write(0x1, BARRIER_REPLY\n\0, 0xE) = 14 0 dtrace: error on enabled probe ID 1754 (ID 18467: syscall::read:return): out of scratch space in action #13 at DIF offset 44 72372/0x27e1a2: select(0x4, 0x7FFF5FBFF670, 0x0, 0x0, 0x0) = 1 0 72372/0x27e1a2: read(0x3, BARRIER_REPLY\n\0, 0x400) = 14 0 dtrace: error on enabled probe ID 1754 (ID 18467: syscall::read:return): out of scratch space in action #13 at DIF offset 44 72372/0x27e1a2: open_nocancel(.\0, 0x0, 0x0) = 5 0 72372/0x27e1a2: fstat64(0x5, 0x7FFF5FBFD360, 0x0) = 0 0 72372/0x27e1a2: fcntl_nocancel(0x5, 0x32, 0x7FFF5FBFD580) = 0 0 72372/0x27e1a2: close_nocancel(0x5) = 0 0 72372/0x27e1a2: stat64(/Users/codemonkey/Work/fish\0, 0x7FFF5FBFD2D0, 0x0) = 0 0 72372/0x27e1a2: stat64(/Users/codemonkey/Work/fish\0, 0x7FFF5FBFDA10, 0x3F8) = 0 0 72372/0x27e1a2: getattrlist(/Users/codemonkey/Work/fish/--\0, 0x7FFF70859100, 0x7FFF5FBFE320) = 0 0 72372/0x27e1a2: fcntl_nocancel(0x4, 0x3, 0x0) = 0 0 72372/0x27e1a2: fstat64(0x4, 0x7FFF5FBFE5A0, 0x7FFF5FBFE66C) = 0 0 72372/0x27e1a2: read_nocancel(0x4, testing\n\0, 0x1000) = 8 0 72372/0x27e1a2: read_nocancel(0x4, \0, 0x1000) = 0 0 72372/0x27e1a2: close_nocancel(0x4) = 0 0 Running the command with debug doesn't show anything useful either: fish --debug-level=10 -c 'seq 10 -1 5' and fish --debug-level=10 -c 'seq -- 10 -1 5' Something is going on really strangely. . . perhaps incompatible versions of getopt? When I run truss (strace) on it, in the 2nd case, it's actually trying to open a file named -- On Fri, Apr 2, 2010 at 12:50 AM, Suraj Kurapati sun...@gmail.com wrote: On Thu, Apr 1, 2010 at 6:58 PM, i...@whywouldwe.com i...@whywouldwe.com wrote: I'm trying to use seq to count backwards from 10 down to 5 in increments of 1 (os x 10.6.3) $ seq 10 -1 5 fish: invalid option -- 1 Does anyone else get the same error? s...@yantram ~ seq 10 -1 5 10 9 8 7 6 5 s...@yantram ~ fish --version fish, version 1.23.1 s...@yantram ~ uname -a Linux yantram 2.6.32-ARCH #1 SMP PREEMPT Mon Mar 15 20:08:25 UTC 2010 i686 Intel(R) Atom(TM) CPU 330 @ 1.60GHz GenuineIntel GNU/Linux -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] seq cannot count backwards
Found and fixed. There were several issues. First, most people who type seq are really running seq on their host. Fish will only use the builtin if it doesn't find it locally. Use 'seq --version' to see what I mean. Second, the getopt processing is kinda broken sometimes. I don't know if this is a macos thing, or what. But, when I turned off the system getopt, by modifying config.h to undef both the GETOPT options, then recompiled, I got past the below ugliness. Then, I was able to make a quick fix. In a nutshell, it farms out the seq to bc. And, it was set to only go up, not down. So, I hacked negative steps into it. Actually, I didn't do it based on the sign of the step, and I probably should have . . hmm . . anyway, this patch works. Maybe I'll change it to compare the step to zero next time, and do the logic based on that: http://github.com/CodeMonk/fish/commit/535858658e81e38f5b5556cb5a64275c32e22322 -Dave On Fri, Apr 2, 2010 at 1:18 AM, David Frascone d...@frascone.com wrote: I can get repeatable failed behavior . . but I can't seem to figure out where it's evaluating that option . . . it's very strange. codemon...@daves-mbp ~/W/fish fish -c 'seq 10 -1 5' fish: invalid option -- 1 codemon...@daves-mbp ~/W/fish fish -c 'seq -- 10 -1 5' open: No such file or directory codemon...@daves-mbp ~/W/fish Now the really cool part . . if I create the file, it fails silently: touch -- '--' fish -c 'seq -- 10 -1 5' Output from dtruss (I put the string testing into the file): 72372/0x27e1a2: open(--\0, 0x0, 0xFC080) = 4 0 72372/0x27e1a2: write(0x3, BARRIER\n\0, 0x8) = 8 0 72359/0x27e17a: select(0x4, 0x7FFF5FBFF7E0, 0x7FFF5FBFF760, 0x0, 0x0) = 1 0 72359/0x27e17a: read(0x1, BARRIER\n\0, 0x400) = 8 0 72359/0x27e17a: write(0x1, BARRIER_REPLY\n\0, 0xE) = 14 0 dtrace: error on enabled probe ID 1754 (ID 18467: syscall::read:return): out of scratch space in action #13 at DIF offset 44 72372/0x27e1a2: select(0x4, 0x7FFF5FBFF670, 0x0, 0x0, 0x0) = 1 0 72372/0x27e1a2: read(0x3, BARRIER_REPLY\n\0, 0x400) = 14 0 dtrace: error on enabled probe ID 1754 (ID 18467: syscall::read:return): out of scratch space in action #13 at DIF offset 44 72372/0x27e1a2: open_nocancel(.\0, 0x0, 0x0) = 5 0 72372/0x27e1a2: fstat64(0x5, 0x7FFF5FBFD360, 0x0) = 0 0 72372/0x27e1a2: fcntl_nocancel(0x5, 0x32, 0x7FFF5FBFD580) = 0 0 72372/0x27e1a2: close_nocancel(0x5) = 0 0 72372/0x27e1a2: stat64(/Users/codemonkey/Work/fish\0, 0x7FFF5FBFD2D0, 0x0) = 0 0 72372/0x27e1a2: stat64(/Users/codemonkey/Work/fish\0, 0x7FFF5FBFDA10, 0x3F8) = 0 0 72372/0x27e1a2: getattrlist(/Users/codemonkey/Work/fish/--\0, 0x7FFF70859100, 0x7FFF5FBFE320) = 0 0 72372/0x27e1a2: fcntl_nocancel(0x4, 0x3, 0x0) = 0 0 72372/0x27e1a2: fstat64(0x4, 0x7FFF5FBFE5A0, 0x7FFF5FBFE66C) = 0 0 72372/0x27e1a2: read_nocancel(0x4, testing\n\0, 0x1000) = 8 0 72372/0x27e1a2: read_nocancel(0x4, \0, 0x1000) = 0 0 72372/0x27e1a2: close_nocancel(0x4) = 0 0 Running the command with debug doesn't show anything useful either: fish --debug-level=10 -c 'seq 10 -1 5' and fish --debug-level=10 -c 'seq -- 10 -1 5' Something is going on really strangely. . . perhaps incompatible versions of getopt? When I run truss (strace) on it, in the 2nd case, it's actually trying to open a file named -- On Fri, Apr 2, 2010 at 12:50 AM, Suraj Kurapati sun...@gmail.com wrote: On Thu, Apr 1, 2010 at 6:58 PM, i...@whywouldwe.com i...@whywouldwe.com wrote: I'm trying to use seq to count backwards from 10 down to 5 in increments of 1 (os x 10.6.3) $ seq 10 -1 5 fish: invalid option -- 1 Does anyone else get the same error? s...@yantram ~ seq 10 -1 5 10 9 8 7 6 5 s...@yantram ~ fish --version fish, version 1.23.1 s...@yantram ~ uname -a Linux yantram 2.6.32-ARCH #1 SMP PREEMPT Mon Mar 15 20:08:25 UTC 2010 i686 Intel(R) Atom(TM) CPU 330 @ 1.60GHz GenuineIntel GNU/Linux -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw
Re: [Fish-users] How to make prog --opt $(cat FILE) in fish
Looks like CRLF (DOS files) cause it to barf. Here's a simple example, where I use vi to set it to dos (:se fileformat=dos), then back to unix (:se fileformat=unix) codemon...@daves-mbp ~/D/fio-bugreport-20100330_111841 cat file This is a file With multiple lines to test fish will it work? codemon...@daves-mbp ~/D/fio-bugreport-20100330_111841 echo (cat file) will it work? lines codemon...@daves-mbp ~/D/fio-bugreport-20100330_111841 file file file: ASCII text, with CRLF line terminators codemon...@daves-mbp ~/D/fio-bugreport-20100330_111841 vi file codemon...@daves-mbp ~/D/fio-bugreport-20100330_111841 echo (cat file) This is a file With multiple lines to test fish will it work? codemon...@daves-mbp ~/D/fio-bugreport-20100330_111841 file file file: ASCII text codemon...@daves-mbp ~/D/fio-bugreport-20100330_111841 On Tue, Mar 30, 2010 at 2:08 PM, Isaac Dupree m...@isaac.cedarswampstudios.org wrote: On 03/30/10 06:39, Stefano Sabatini wrote: prog --opt (cat FILE) doesn't work as the output of the command is not put into a single argument (as it may contain newlines, spaces, etc.) Yes, it does work: Fish never expands on white-space. (On the other hand, it is still annoying that fish doesn't let you put expansions inside quotes -- just for syntactical convenience inside longer quoted strings, not because it does anything different there...) -Isaac -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Does anyone use fish as their #1 shell (OS/X)?
I had to quit using fish, due to constant script incompatibilities. I guess some script authors are too lazy to add hash-bang-bash to the top of their scripts . . . Has anyone had any success making fish their real new home? Oh -- and I also had some issues with the select bug that was posted here a while ago, but is still not patched :( -Dave -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Does anyone use fish as their #1 shell (OS/X)?
Ok . . .it's been a few months . . let me switch back, so I can provide details if I run into problems. I did love fish when I used it, but I ran into something that I don't remember, so I bailed back to zsh. -Dave On Tue, Mar 30, 2010 at 3:26 PM, Isaac Dupree m...@isaac.cedarswampstudios.org wrote: On 03/30/10 15:14, David Frascone wrote: I had to quit using fish, due to constant script incompatibilities. I guess some script authors are too lazy to add hash-bang-bash to the top of their scripts . . . what? -- script files don't run unless you start the file with #!/bin/bash (or similar), or unless you invoke them as 'bash the_script_file' Has anyone had any success making fish their real new home? Oh -- and I also had some issues with the select bug that was posted here a while ago, but is still not patched :( yes, fish has been my shell for a couple of years. The hilighting and history features are nice. So is the fact that I've got it storing my command history forever, rather than just, say, 500 previous commands (can you configure Bash to store history forever too?). But there are frequent bugs in various things like redirection, history up-and-down, maybe loops or syntax, etc... Whenever I want to do something semi-complicated, or if something didn't work as I expected in Fish, I switch to bash to make it work--Which I know well, because I write all my own scripts in bash. Also necessary for copy/pasting from the Internet. -Isaac -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Does anyone use fish as their #1 shell (OS/X)?
Ok -- let's start slow -- my aliases need to be recreated -- which is fine. I set the alias 'vi' to either be vim, or mvim depending on if I'm on my mac, or shelled into a linux box. But, the type command does not seem to do what I think it should: codemon...@daves-mbp ~/.c/fish type vi -- type -Q -o tpPafh -- vi type: Could not find 'vi' codemon...@daves-mbp ~/.c/fish vi codemon...@daves-mbp ~/.c/fish type fg -- type -Q -o tpPafh -- fg fg is a builtin codemon...@daves-mbp ~/.c/fish alias alias: Expected one or two arguments, got 0 codemon...@daves-mbp ~/.c/fish alias vi fish: Array index out of bounds /usr/local/share/fish/functions/alias.fish (line 19): set body $tmp[2] ^ in function 'alias', called on standard input, with parameter list 'vi' Ideas? The vi command does work, so I don't know why type does not return it. Or what the garbage is in the line before type's output. On Tue, Mar 30, 2010 at 3:35 PM, David Frascone d...@frascone.com wrote: Ok . . .it's been a few months . . let me switch back, so I can provide details if I run into problems. I did love fish when I used it, but I ran into something that I don't remember, so I bailed back to zsh. -Dave On Tue, Mar 30, 2010 at 3:26 PM, Isaac Dupree m...@isaac.cedarswampstudios.org wrote: On 03/30/10 15:14, David Frascone wrote: I had to quit using fish, due to constant script incompatibilities. I guess some script authors are too lazy to add hash-bang-bash to the top of their scripts . . . what? -- script files don't run unless you start the file with #!/bin/bash (or similar), or unless you invoke them as 'bash the_script_file' Has anyone had any success making fish their real new home? Oh -- and I also had some issues with the select bug that was posted here a while ago, but is still not patched :( yes, fish has been my shell for a couple of years. The hilighting and history features are nice. So is the fact that I've got it storing my command history forever, rather than just, say, 500 previous commands (can you configure Bash to store history forever too?). But there are frequent bugs in various things like redirection, history up-and-down, maybe loops or syntax, etc... Whenever I want to do something semi-complicated, or if something didn't work as I expected in Fish, I switch to bash to make it work--Which I know well, because I write all my own scripts in bash. Also necessary for copy/pasting from the Internet. -Isaac -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Does anyone use fish as their #1 shell (OS/X)?
On Tue, Mar 30, 2010 at 3:55 PM, Isaac Dupree m...@isaac.cedarswampstudios.org wrote: On 03/30/10 15:48, David Frascone wrote: Ideas? The vi command does work, so I don't know why type does not return it. Or what the garbage is in the line before type's output. For myself, I don't use aliases/functions, I use shell scripts. For example, on my path, I have $HOME/scripts and I could have a file $HOME/scripts/vi, that I chmod +x, that reads #!/bin/sh That would work fine for me. But, since I don't know where vi is, because the type command doesn't work . . . And, here's another one: When I sudo from zsh or bash, my path is maintained. When I do it from fish, the path does not work. So, in this case, I was going to install the darwinports port for fish, so I could look at the code, but: sudo port install fish Does not work, because port is not properly in the sudo path. And, I can't invoke it directly, because: type port Also does not work. So, in this case, I had to do this: exec zsh type port exec fish sudo /opt/local/bin/port install fish Now, /opt/local/bin is in my path, but, my user doesn't have access to install ports, root does . . . These are some of the issues which caused me to dump fish in the past. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Does anyone use fish as their #1 shell (OS/X)?
Which is also broken: codemon...@daves-mbp ~ which port codemon...@daves-mbp ~ port MacPorts 1.8.2 Entering interactive mode... (help for help, quit to quit) [Users/codemonkey] quit Goodbye codemon...@daves-mbp ~ which port codemon...@daves-mbp ~ On Tue, Mar 30, 2010 at 4:18 PM, Isaac Dupree m...@isaac.cedarswampstudios.org wrote: On 03/30/10 16:06, David Frascone wrote: That would work fine for me. But, since I don't know where vi is, because the type command doesn't work . . . use 'which' to find executable files on the PATH (though not to find functions/aliases/builtins). ( /usr/bin/which on my system ) And, here's another one: When I sudo from zsh or bash, my path is maintained. When I do it from fish, the path does not work. So, in this case, I was going to install the darwinports port for fish, so I could look at the code, but: sudo port install fish Sudo works for me in all shells, but I'm on Linux. Mac OS X may be set up differently... -Isaac -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
[Fish-users] Setting PATH?
Ok . . I'm trying to take the plunge, and I'm running into some strangnesses that I can't explain. So, I did a chsh to change my login shell to fish. And, when I first log in, things work really strangely. type, whereis, and a few other scripts do not function properly. BUT -- if I then exec, or shell fish again, they do. And, my path is set completely differently. Ok -- so -- that could just be some weird login -vs- interactive shell setting. I get that. But, here's the really strange part. In my home directory's config.fish, I have this snippet: if [ -d ~/bin ] echo PATH before: $PATH set -g PATH $PATH ~/bin echo PATH after: $PATH end So, if my ~/bin exists, it will be appended to the path. For the login shell, this works. For all other shells, the code executes, but the path does NOT change -- WTF?!?!?! Here's what it looks like when I start with a login shell, then manually run fish (even though type can't find it, it's still in the path at /usr/local/bin/fish -- as shown by the executable type). WTF am I doing wrong? Last login: Tue Mar 30 23:17:41 on ttys009 /usr/local/share/fish/config.fish: /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11/bin /usr/local/etc/fish/config.fish: /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11/bin PATH before: /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11/bin PATH after: /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11/bin /Users/codemonkey/bin ~/.config/fish/config.fish: /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11/bin /Users/codemonkey/bin Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish codemon...@daves-mbp ~ # We're in the login shell now codemon...@daves-mbp ~ echo $PATH /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11/bin /Users/codemonkey/bin codemon...@daves-mbp ~ type fish type: Could not find 'fish' codemon...@daves-mbp ~ /usr/bin/type fish fish is /usr/local/bin/fish codemon...@daves-mbp ~ echo $version 1.23.1.2 codemon...@daves-mbp ~ fish /usr/local/share/fish/config.fish: /bin /usr/bin /usr/local/bin /usr/local/etc/fish/config.fish: /bin /usr/bin /usr/local/bin PATH before: /bin /usr/bin /usr/local/bin PATH after: /bin /usr/bin /usr/local/bin ~/.config/fish/config.fish: /bin /usr/bin /usr/local/bin Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish codemon...@daves-mbp ~ echo $version 1.23.1.2 codemon...@daves-mbp ~ type fish fish is /usr/local/bin/fish codemon...@daves-mbp ~ path fish: Unknown command 'path' codemon...@daves-mbp ~ echo $PATH /bin /usr/bin /usr/local/bin codemon...@daves-mbp ~ exit Goodbye codemon...@daves-mbp ~ -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users