Re: [Fish-users] a builtin AND a function?

2017-10-23 Thread Diego Zamboni
Mark, cd is a builtin, but the default fish installation comes with a function called cd (which overshadows the builtin) which wraps the builtin and adds some functionality such as recognizing "-" to mean "previous directory", keeping the directory history, etc. You can see its definition by

Re: [Fish-users] external command inside function fails on OSX

2016-11-30 Thread Diego Zamboni
I'm not sure how PATH settings are propagated through functions. One quick solution would be to just use the full path for all commands (e.g. /usr/sbin/diskutil). On Wed, Nov 30, 2016 at 2:14 PM, Dave Cottlehuber wrote: > Hi fisherfolk, > > This is a copy-pasta function

Re: [Fish-users] Pining for !$ and !!

2016-05-19 Thread Diego Zamboni
Hi Stig, I also missed !! and !$ when I moved to fish. Someone on this list (can’t remember who, sorry) pointed me to this: https://github.com/fish-shell/fish-shell/wiki/Bash-Style-History-Substitution-%28%21%21-and-%21%24%29 I’ve been using it ever since and it works beautifully (I haven’t

Re: [Fish-users] fish as a first programming language

2016-01-24 Thread Diego Zamboni
You don't say how old your son is, but I'd go for the tutorials at code.org or Scratch (scratch.mit.edu), which are far more structured, visual and geared for kids. My 7- and 9-year olds love them. --Diego On Sun, Jan 24, 2016 at 2:03 PM, Patrick wrote: Hi !

Re: [Fish-users] Suspend?

2015-08-04 Thread Diego Zamboni
Hi Mike, There doesn't seem to be a way to suspend a fish shell, ala the suspend builtin in zsh, bash, etc. I'm wondering if this is a bug, and C-Z should work (except in a login shell), or if it's a design feature. or if no one has asked for it? It works for me: diego@cuper➜ sleep 50

Re: [Fish-users] Suspend?

2015-08-04 Thread Diego Zamboni
Valid use cases, although for most of those I’d prefer something like tmux or screen. —Diego On Aug 4, 2015, at 1:05 PM, Mike Meyer m...@mired.org wrote: On Tue, Aug 4, 2015 at 3:38 AM David Adam zanc...@ucc.gu.uwa.edu.au mailto:zanc...@ucc.gu.uwa.edu.au wrote: On Tue, 4 Aug 2015, Mike

Re: [Fish-users] 5 minutes fish from 15 years bash impression

2015-05-08 Thread Diego Zamboni
May 2015 08:08 Gour g...@atmarama.net mailto:g...@atmarama.net wrote: Diego Zamboni di...@zzamboni.org mailto:di...@zzamboni.org writes: Aleksey: fish is indeed not bash, but in a good way. There are many things that could be improved, for sure, but it’s great even now. I was never

Re: [Fish-users] 5 minutes fish from 15 years bash impression

2015-05-08 Thread Diego Zamboni
On May 8, 2015, at 5:43 PM, Greg Reagle greg.rea...@umbc.edu wrote: I think it's worth noting here that in fish, if you just type 'c' on an empty command line, it will automatically show you the last command that started with 'c'. More precisely, it brings back the last command that

Re: [Fish-users] 5 minutes fish from 15 years bash impression

2015-05-07 Thread Diego Zamboni
Robert, I couldn’t agree more. There are a few things I found frustrating in fish at first (some I still do, like the inability to recall previous commands/arguments with !! and !$ - I have to look more into coding those with functions), but over time I’ve found the interactive shell

Re: [Fish-users] query about using alias with sudo

2015-03-05 Thread Diego Zamboni
Mandeep, Have you also changed root’s shell to fish? Otherwise it will not read that config file. If I may make a side comment, I wouldn’t recommend using fish as root’s shell. As much as I like fish, its code is not nearly as mature as bash or sh, so there’s a higher likelihood of bugs,

Re: [Fish-users] Remove path from $fish_user_paths

2015-03-02 Thread Diego Zamboni
: set: Erase needs a variable name Next I tried: set -e $fish_user_paths[/usr/local/php5] ...and received the same error. Any idea how I can remove the /usr/local/php5 path from my $fish_user_paths? Thanks, Ryan On Sun, Mar 1, 2015 at 10:45 PM, Diego Zamboni di...@zzamboni.org

Re: [Fish-users] Fish/vi issue

2015-01-04 Thread Diego Zamboni
Hi Birch, I would imagine this has to do with the type of terminal you are using. I use TERM=xterm256 and it works fine. --Diego On 01/01/2015 04:42 p. m., J Birch wrote: I have installed fish and am experiencing an annoying little warning I cannot get rid of, and it should be simple.

Re: [Fish-users] Using fish without fishd

2014-11-17 Thread Diego Zamboni
want fishd running, then you probably don't want to be using fish. If you use add ons like oh-my-zsh or oh-my-bash, you can get bash and zsh to do most of what fish does. - Booker C. Bense On Sun, Nov 16, 2014 at 8:01 PM, Diego Zamboni di...@zzamboni.org mailto:di...@zzamboni.org

Re: [Fish-users] Using fish without fishd

2014-11-17 Thread Diego Zamboni
behavior in the next release. _fish On Nov 17, 2014, at 9:00 PM, Diego Zamboni di...@zzamboni.org mailto:di...@zzamboni.org wrote: Hi Booker, I know all of this, but on my machine I simply don’t have fishd installed, nor running: ➜ ~ echo $FISH_VERSION 2.1.1-1089-g0ea80a3 ➜ ~ ps

Re: [Fish-users] Using fish without fishd

2014-11-16 Thread Diego Zamboni
Strange... I see all the references to fishd in documentation, but I don't have fishd installed nor running. However, universal variables work fine. I'm installing fish using Homebrew, and the formula file contains a pkill fishd in the postinstall section, so I guess it must've been there not

Re: [Fish-users] how to echo minus symbol

2014-11-12 Thread Diego Zamboni
Hi Santhosh, It works fine for me: ➜ ~ echo $FISH_VERSION 2.1.1-1075-g701a37f ➜ ~ echo - - —Diego On Nov 12, 2014, at 5:39 PM, Santhosh T santhosh.tek...@gmail.com wrote: the command: echo - prints nothing i tried following also: echo - echo '-' but following works:

Re: [Fish-users] invalid options are not highlighted in red

2014-11-10 Thread Diego Zamboni
I think the complete inside the function should be builtin complete to ensure the native function is called. --Diego On Nov 10, 2014, at 1:59 AM, David Adam zanc...@ucc.gu.uwa.edu.au wrote: Presumably you could do something like this: ``` function complete complete --authoritative

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-11-01 Thread Diego Zamboni
On Oct 31, 2014, at 11:16 AM, Diego Zamboni di...@zzamboni.org wrote: Hi, I’m having the same issue - Alt-left and Alt-right do nothing. “dirs” for me (on OSX as well) also shows just the current directory, but “dirh” shows the full directory history. Also, prevd-or-backward-word

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-11-01 Thread Diego Zamboni
-or-forward-word But when i hit ALT-[ and Alt-], i see following characters in termainl: ‘‘‘ thanks Santhosh On Fri, Oct 31, 2014 at 11:46 PM, Diego Zamboni di...@zzamboni.org mailto:di...@zzamboni.org wrote: Hi, I’m having the same issue - Alt-left and Alt-right do nothing

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-10-31 Thread Diego Zamboni
Hi, I’m having the same issue - Alt-left and Alt-right do nothing. “dirs” for me (on OSX as well) also shows just the current directory, but “dirh” shows the full directory history. Also, prevd-or-backward-word and next-or-forward-word work fine when invoked directly: a10022@cuper ~/Documents

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-10-31 Thread Diego Zamboni
then it started working. any clues, what is wrong here.. - santhosh On Sat, Nov 1, 2014 at 12:06 AM, Diego Zamboni di...@zzamboni.org mailto:di...@zzamboni.org wrote: I found a solution - I am using Terminal.app, and in the “Keyboards” tab of the preferences I found the mappings