[Fish-users] Google+ community
Hello fellow fishermen and women I created a g+ community for fish because why not. Feel free to join or not. Feel free to ask for moderator status, especially if you're a core developer! Feel free to suggest missing post categories. If you join, do post! I hope the use of the logo from the beta site is OK? https://plus.google.com/u/0/communities/104185660964450582820 Kind regards, Dag -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Fish user documentation
Hi, I think the sources for these docs are in here: https://github.com/fish-shell/fish-shell/tree/master/doc_src If you don't know git you can just edit the files on the web. The first one seems to be here: https://github.com/fish-shell/fish-shell/blob/master/doc_src/index.hdr.in#L165 The second one seems to be fixed already: https://github.com/fish-shell/fish-shell/blob/master/doc_src/index.hdr.in#L97 Wouldn't it be nice to say you're a contributor to fish? :-) Cheers On Tue, May 7, 2013 at 2:53 PM, Bryan Kilgallin wrote: > The following excerpt contains a spelling error. > > "Single quotes have no special meaning withing double quotes and vice > versa." > > file:///usr/share/doc/fish/index.html#syntax > -- > www.netspeed.com.au/bryan/ > > > -- > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > ___ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users > -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] aliasing pushd
Because alias creates a function and pushd calls cd as a command which includes functions. But you don't really need to do this in fish because it already has a directory history that cd updates, and you can navigate it with prevd/nextd or Alt-left/right arrows. On Tue, May 21, 2013 at 2:47 PM, John Chludzinski < john.chludzin...@gmail.com> wrote: > When using ksh or bash I typically alias cd to pushd. When I do that in > my config.fish file I get an infinite recursion of cd calling pushd calling > cd calling pushd calling ... > > Why? > > ---John > > > -- > 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 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] aliasing pushd
Torsten: `command` runs programs, and `command cd` won't change the cwd in fish. You'd need `builtin cd` to get the fish builtin, side-stepping the cd function. But see below. Robert: You may be using `builtin cd`, which doesn't log directory history. What does `type cd` say? On Tue, May 21, 2013 at 5:25 PM, Robert Carpenter wrote: > I've been meaning to look into this for months now, but haven't gotten > around to it. > > I'm either totally misunderstanding the directory history or mine is > broken: > > rob ~> dirh > /Users/rob > rob ~> ./Desktop > rob ~/Desktop> dirh > /Users/rob/Desktop > rob ~/Desktop> > > The only thing I can think of that might have altered this behavior is > that I have a function listening to the cwd event. > > How should I go about sorting this? > > Thanks > Robert > > > On Tue, May 21, 2013 at 7:58 AM, Torsten Grust < > torsten.gr...@uni-tuebingen.de> wrote: > >> On 21 May 2013, at 14:47, John Chludzinski wrote (with possible >> deletions): >> > When using ksh or bash I typically alias cd to pushd. When I do that >> in my >> > config.fish file I get an infinite recursion of cd calling pushd >> calling cd >> > calling pushd calling ... >> >> You may find 'command' helpful in such situations: >> >> http://fishshell.com/docs/2.0/commands.html#command >> >> 'command cd' will execute fish's built-in 'cd', regardless of any function >> of the same name. >> >> Happy fishing, >>--Torsten >> >> -- >> | Prof. Dr. Torsten Grust >> | Database Systems — Universität Tübingen (Germany) >> | torsten.gr...@uni-tuebingen.de >> | db.inf.uni-tuebingen.de >> >> >> -- >> 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 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 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] aliasing pushd
That there *is* calling `builtin cd`! I suggest removing it (presumably you have that in ~/.config/fish/functions/cd.fish or something like that) so the one that ships with fish is used instead, and then use a variable listener function instead of a cwd event: function on_new_cwd -v PWD echo new cwd is $PWD end On Wed, May 22, 2013 at 4:01 PM, Robert Carpenter wrote: > On Wed, May 22, 2013 at 1:55 AM, dag.odenh...@gmail.com < > dag.odenh...@gmail.com> wrote: > >> Torsten: `command` runs programs, and `command cd` won't change the cwd >> in fish. You'd need `builtin cd` to get the fish builtin, side-stepping the >> cd function. But see below. >> >> Robert: You may be using `builtin cd`, which doesn't log directory >> history. What does `type cd` say? >> >> > Good thought, but I don't think so: > > rob ~> type cd > cd is a function with definition > > function cd --description 'Change working directory' > builtin cd $argv > emit cwd > end > > rob ~> > > I had a similar thought and went down this path in the past, I think. Any > other ideas? > > Thanks > > >> On Tue, May 21, 2013 at 5:25 PM, Robert Carpenter wrote: >> >>> I've been meaning to look into this for months now, but haven't gotten >>> around to it. >>> >>> I'm either totally misunderstanding the directory history or mine is >>> broken: >>> >>> rob ~> dirh >>> /Users/rob >>> rob ~> ./Desktop >>> rob ~/Desktop> dirh >>> /Users/rob/Desktop >>> rob ~/Desktop> >>> >>> The only thing I can think of that might have altered this behavior is >>> that I have a function listening to the cwd event. >>> >>> How should I go about sorting this? >>> >>> Thanks >>> Robert >>> >>> >>> On Tue, May 21, 2013 at 7:58 AM, Torsten Grust < >>> torsten.gr...@uni-tuebingen.de> wrote: >>> >>>> On 21 May 2013, at 14:47, John Chludzinski wrote (with possible >>>> deletions): >>>> > When using ksh or bash I typically alias cd to pushd. When I do that >>>> in my >>>> > config.fish file I get an infinite recursion of cd calling pushd >>>> calling cd >>>> > calling pushd calling ... >>>> >>>> You may find 'command' helpful in such situations: >>>> >>>> http://fishshell.com/docs/2.0/commands.html#command >>>> >>>> 'command cd' will execute fish's built-in 'cd', regardless of any >>>> function >>>> of the same name. >>>> >>>> Happy fishing, >>>>--Torsten >>>> >>>> -- >>>> | Prof. Dr. Torsten Grust >>>> | Database Systems — Universität Tübingen (Germany) >>>> | torsten.gr...@uni-tuebingen.de >>>> | db.inf.uni-tuebingen.de >>>> >>>> >>>> -- >>>> 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 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 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] aliasing pushd
Happy to help! On Wed, May 22, 2013 at 7:53 PM, Robert Carpenter wrote: > Welp, there it is. I feel silly. It is working now. I had just assumed > that function was the fish builtin. I see that the fish version is much > more elaborate. > > Thanks, Dag! > > > On Wed, May 22, 2013 at 11:40 AM, dag.odenh...@gmail.com < > dag.odenh...@gmail.com> wrote: > >> That there *is* calling `builtin cd`! I suggest removing it (presumably >> you have that in ~/.config/fish/functions/cd.fish or something like that) >> so the one that ships with fish is used instead, and then use a variable >> listener function instead of a cwd event: >> >> function on_new_cwd -v PWD >> echo new cwd is $PWD >> end >> >> >> >> On Wed, May 22, 2013 at 4:01 PM, Robert Carpenter wrote: >> >>> On Wed, May 22, 2013 at 1:55 AM, dag.odenh...@gmail.com < >>> dag.odenh...@gmail.com> wrote: >>> >>>> Torsten: `command` runs programs, and `command cd` won't change the >>>> cwd in fish. You'd need `builtin cd` to get the fish builtin, side-stepping >>>> the cd function. But see below. >>>> >>>> Robert: You may be using `builtin cd`, which doesn't log directory >>>> history. What does `type cd` say? >>>> >>>> >>> Good thought, but I don't think so: >>> >>> rob ~> type cd >>> cd is a function with definition >>> >>> function cd --description 'Change working directory' >>> builtin cd $argv >>> emit cwd >>> end >>> >>> rob ~> >>> >>> I had a similar thought and went down this path in the past, I think. >>> Any other ideas? >>> >>> Thanks >>> >>> >>>> On Tue, May 21, 2013 at 5:25 PM, Robert Carpenter >>>> wrote: >>>> >>>>> I've been meaning to look into this for months now, but haven't gotten >>>>> around to it. >>>>> >>>>> I'm either totally misunderstanding the directory history or mine is >>>>> broken: >>>>> >>>>> rob ~> dirh >>>>> /Users/rob >>>>> rob ~> ./Desktop >>>>> rob ~/Desktop> dirh >>>>> /Users/rob/Desktop >>>>> rob ~/Desktop> >>>>> >>>>> The only thing I can think of that might have altered this behavior is >>>>> that I have a function listening to the cwd event. >>>>> >>>>> How should I go about sorting this? >>>>> >>>>> Thanks >>>>> Robert >>>>> >>>>> >>>>> On Tue, May 21, 2013 at 7:58 AM, Torsten Grust < >>>>> torsten.gr...@uni-tuebingen.de> wrote: >>>>> >>>>>> On 21 May 2013, at 14:47, John Chludzinski wrote (with possible >>>>>> deletions): >>>>>> > When using ksh or bash I typically alias cd to pushd. When I do >>>>>> that in my >>>>>> > config.fish file I get an infinite recursion of cd calling pushd >>>>>> calling cd >>>>>> > calling pushd calling ... >>>>>> >>>>>> You may find 'command' helpful in such situations: >>>>>> >>>>>> http://fishshell.com/docs/2.0/commands.html#command >>>>>> >>>>>> 'command cd' will execute fish's built-in 'cd', regardless of any >>>>>> function >>>>>> of the same name. >>>>>> >>>>>> Happy fishing, >>>>>>--Torsten >>>>>> >>>>>> -- >>>>>> | Prof. Dr. Torsten Grust >>>>>> | Database Systems — Universität Tübingen (Germany) >>>>>> | torsten.gr...@uni-tuebingen.de >>>>>> | db.inf.uni-tuebingen.de >>>>>> >>>>>> >>>>>> -- >>>>>> 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 Re
Re: [Fish-users] config.fish: writing to a file
`export` is `set -x` in fish. Without quotes you get a list which when exported is joined with a colon; useful for $PATH but not $EDITOR: $ set -x EDITOR 'sublime -w' $PATH is a list in fish and when you use a list as an unquoted part of an argument you get a cartesian product, similar to brace expansion: $ echo PATH=$PATH PATH=/bin PATH=/sbin Obviously not what you want in this case. If you quote a list variable it's joined with a space: $ echo "PATH=$PATH" PATH=/bin /sbin Not what you want either. If you don't have any spaces in any of the items in your $PATH you can just substitute space for colon: $ echo "PATH=$PATH" | tr ' ' : PATH=/bin:/sbin Redirecting output to a file and chmod is the same as in zsh, but note that config.fish is sourced even when running scripts and with fish -c. You may want to check if the shell is interactive: if status --is-interactive do-the-above end Hope that helps! On Thu, May 23, 2013 at 2:10 AM, Yvon Thoraval wrote: > actually I'm using zsh as a shell, i plan to switch to fish. > i don't know how to do some lines (from .zshrc) in config.fish : > > export EDITOR='sublime -w' > > could it be translated to : > set EDITOR sublime -w > (the -w arg is mandatory) > > also i do have actually : > echo PATH=$PATH > .profile > echo PATH=$PATH > ~/.ssh/environment > echo PGDATA=$PGDATA >> ~/.ssh/environment > chmod 0600 ~/.ssh/environment > (chmod 600 is mandatory) > > that is writing to a file. > > -- > Yvon@48.871651804,2.384858688 > > > > -- > 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 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] Anyone seen this?
It seems you have a dircolors program that produces different output from mine, so I'd guess that cygwin's dircolors is different from the one on Linux and OS X, where fish has had more testing. The ls function tries to evaluate dircolors -c when $LS_COLORS isn't already set, which outputs a csh script. On my Linux system this script is just a "setenv" line, which fish understands due to shipping a setenv alias for "set -gx". However it looks like your dircolors is producing a more complicated csh script; in particular it's doing `>&/dev/null` which means something different in csh from what it means in fish (where the syntax would be `>/dev/null ^&1`). As a simple workaround you could simply set LS_COLORS yourself: $ dircolors -c >>~/.config/fish/config.fish Or wherever the config would be in cygwin, and then edit it and remove the `>&/dev/null` part. On Thu, May 23, 2013 at 4:14 PM, David Frascone wrote: > 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 > > -- 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] Executing ksh script from the fish shell ?
This ./script.sh is different from . ./script.sh The latter is simply . script.sh which is to say "evaluate this file in the shell". It shouldn't do what you want in the other shells either, although they may be more compatible making you think it worked. If you want to run a script (as opposed to sourcing it) do just that, ./script.sh and if it's executable and has a shebang it will work just fine in fish. Hope that helps! On Thu, May 23, 2013 at 7:58 PM, John Chludzinski < john.chludzin...@gmail.com> wrote: > Example: > > fish: Unknown command “SSH_TEMPLATE=ssh”. Did you mean “set > SSH_TEMPLATE ssh”? For information on assigning values to variables, > see the help > section on the set command by typing “help set”. > /home/john.chludzinski/work/dtngksh/dtng_env.ksh (line 357): > SSH_TEMPLATE=ssh > > On Thu, May 23, 2013 at 1:29 PM, John Chludzinski > wrote: > > If I execute from within ksh a file with shabang: #!/bin/sh, it will > > use the Bourne shell. With #!/bin/bash, it will use bash, and so on > > using: > > > > ./script.sh > > > > I tried from within fish: > > > > . ./script.sh # . - evaluate contents of file. > > > > with shabang #!/bin/ksh > > > > and got a train load of errors because it (i.e., the fish shell) tried > > to "evaluate contents of file" as a fish shell script (ignoring the > > shabang: #!/bin/ksh). > > > > ---John > > > -- > 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 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] Refreshing ~/.config/fish/config.fish
. ~/.config/fish/config.fish On Sat, May 25, 2013 at 3:23 PM, Sergiusz Kierat wrote: > Hi. > > I would like to know how to refresh fishshell after changing my > configuration. > > What's fish's equivalent to *source .bashrc *? > * > * > S. > > > -- > 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 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] SELinux errors logging in from a virtual terminal
I had this too but then I just installed to /usr/local and it worked fine. On Sun, May 26, 2013 at 2:36 PM, Tim Cuthbertson wrote: > Not really a question - more of an info piece for those who > switch to fish as default shell and run into the same problem: > > I switched to fish as my login shell and it's generally been quite > fine. But when my window manager crashed I had to switch to a virtual > console to fix it. I couldn't log in, and having a look at > `journaltctl` showed that I was getting: > > > SELinux is preventing /usr/bin/login from execute access on the file > /home/tim/.bin/fish > > Further prodding revelaed that the `login` process is only allowed to > exec files with SELinux type `local_login_t` (or at least that's how I > read the error message). > > $ chcon -t local_login_t ~/.bin/fish > chcon: Permission denied > > Unfortunately, even "sudo make me a sandwich" failed: > > $ sudo chcon -t local_login_t ~/.bin/fish > chcon: Permission denied > > Some googling turned up: > http://www.redhat.com/archives/fedora-selinux-list/2006-March/msg00121.html > > In which it's explained that mount_t is a domain, not a type you can > assign to a directory. I guess local_login_t is similar, so I checked > out what type `bash` has: > > $ ls -Z /bin/bash > -rwxr-xr-x. root root system_u:object_r:shell_exec_t:s0 /bin/bash* > > That'll do: > > $ chcon -t shell_exec_t ~/.bin/fish > > Any my virtual console login is now working with `fish`. > > Might be worth a warning somewhere official, if this is a problem many > people will hit (I assume you'll always get it in rhel/fedora at > least, although the .rpms may have this set properly - I compiled fish > myself). > > Cheers, > - Tim. > > > -- > 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 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] understanding variables in Fish functions
See issue #565 for a discussion about this. https://github.com/fish-shell/fish-shell/issues/565 On Sun, May 26, 2013 at 3:23 PM, Harm Aarts wrote: > Hi, > > I've noticed that variables in Fish function seem to be 'declared': > > function sheep > set -l feet > if test 1 -eq 1 > set feet 4 > end > echo $feet > end > > Why is this? The definition below seems to work just fine. > > function sheep > if test 1 -eq 1 > set feet 4 > end > echo $feet > end > > I was under the impression that the purpose of 'set -l' was to prevent > leaking state beyond the function. But using the latter definition and then > running 'set' doesn't list the 'feet' variable. > > What would be the idiomatic way of declaring and using variables in Fish > functions? > > With kind regards, > Harm > > > -- > 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 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] fish transalation of the "!!" ?
function h; echo $history[1]; end now you can do sudo (h) On Tue, May 28, 2013 at 7:06 PM, Yvon Thoraval wrote: > fine thanks it's $history[1] : > > $ cat ~/.config/fish/config.fish > if status --is-interactive > blahblahblah > end > > $ echo $history[1] > cat ~/.config/fish/config.fish > > $ > > then, i'd like to alias $history[1] to something shorter. > > for example h1 > > the previous "echo $history[1]" giving : > > $ echo $h1 > > > > 2013/5/28 Myrddin Emrys > >> I'm not at my computer, but you can use the history variable. >> >> $ my_command $history[0] >> >> I have not done this myself, so I can't remember if you should use >> $history[1] instead. Not sure when the current command gets pushed into the >> array. >> >> >> On Tue, May 28, 2013 at 11:31 AM, Yvon Thoraval >> wrote: >> >>> before switching to fish, from zsh, I've used a command like : >>> $ my_command "!!" >>> >>> the "!!" being translated to last command line (as up key). >>> >>> is there a way to get last command line as argument of the current >>> command line ? >>> >>> -- >>> Yvon@48.871651804,2.384858688 >>> >>> >>> >>> -- >>> 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 >>> >>> >> > > > -- > Yvon@48.871651804,2.384858688 > > > > -- > 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 > > -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Fish License
Me too, but do we actually need to ask every contributor? I'm not sure how the GPL works but it seems the copyright is assigned exclusively to Axel, so perhaps he has the final and only say in the matter. Of course discussing it is always good but it might be impractical to contact every contributor ever. I'll also note that the license file is not included in the source tree or mentioned in the readme. On Wed, May 29, 2013 at 2:17 AM, David Adam wrote: > On Tue, 28 May 2013, Jan Kanis wrote: > > So, what do people think about this, and specifically, are there any > > current contributors who are opposed to relicensing their code under > > GPLv2+? > > > > If it is decided that moving to GPLv2+ is desirable, I volunteer to take > on > > the effort of contacting all current copyright holders. > > It sounds like a good idea, and I would be happy to relicense my > contributions. > > David Adam > zanc...@ucc.gu.uwa.edu.au > > > -- > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > ___ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users > -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Gnu Screen changes fish colors
Quite likely screen isn't advertising 256 color capabilities. Try adding this to your ~/.screenrc: term "screen-256color" On Sun, Jun 2, 2013 at 3:34 AM, Billy Matthews wrote: > Hi Luciano, > > See this section of the docs > http://fishshell.com/docs/2.0/commands.html#fish_config > > You should be able to configure your desired colors from the web interface > provided by fish_config. > > Best > > > > > On Sat, Jun 1, 2013 at 8:41 PM, Luciano ES <**lucm...@gmail.com** > ="mailto:lucm...@gmail.com";>> wrote: > >> Hi. I have decided to give GNU screen another try for reasons that don't >> matter right now. I am actually trying to acquire the habit of using it all >> the time. It play ball with fish pretty well, but it's changing colors. In >> fish, I am used to having the command print in gray and the first argument >> (file or directory) in light blue/cyan. In screen, the argument appears in >> dark blue, which is hard to see. Is there anything I can do about that? -- >> Luciano ES >> >> -- >> Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free >> troubleshooting tool designed for production Get down to code-level detail >> for bottlenecks, with <2% overhead. Download for free and get started >> troubleshooting in minutes. >> http://p.sf.net/sfu/appdyn_d2d_ap2___ >> Fish-users mailing list >> Fish-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/fish-users > > > > -- > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > ___ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users > > -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] Working on a new terminal emulator
This looks interesting. I was wondering if perhaps you should consider collaborating with the Final Term[1] project instead, but then they use Vala and GTK/Clutter and you use Qt/QML, so perhaps having two projects is warranted. Anyway I'm not sure fish_title is quite what you want, and neither would fish_prompt be. They can be redrawn in situations where no command line has been executed, such as when a key binding changes the working directory. I totally think we need some hooks[2] for these things in fish; I've been wanting "postexec" myself for doing things like showing a desktop notification when a long-running command finishes. There's already an event architecture in fish, so perhaps a few events could be added. In your case it might work to rebind Enter, something like: bind \n 'preexec; commandline -f execute' I don't know of a way to hook the completions output. I think it calls out to fish_pager to display them, but I'm not sure if it does that in every situation. If I just replace it with a function fish_pager, that doesn't seem to have any effect at all. Maybe try replacing the binary. Again, maybe some hooks could be added. One of the things I like about fish is that it tends to be quite hackable, but things can always be made more so. [1] http://finalterm.org/ [2] https://github.com/fish-shell/fish-shell/issues/477 https://github.com/fish-shell/fish-shell/issues/672 On Sun, Jun 16, 2013 at 12:38 AM, Mario Signorino < mario.signor...@gnufish.net> wrote: > On Sat, Jun 15, 2013 at 9:55 PM, Mario Signorino > wrote: > > > 2) preexec: again, in zsh there is a preexec() function called just > > after the execution of any command... and before any output. What I > Ok I saw the OSC sent by default to set the window title. I could > work on that fish_title. > > Now: the completion... I need to convert this: > > dodiesis@xps14 ~> ls / [TAB] > /bin/ (Directory) > > to this > > dodiesis@xps14 ~> ls / [TAB] > \033|.1 /bin/ \033|.2\033|.3 (Directory) \033|.4 > > tnx! > Mario > > > -- > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > ___ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users > -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users