Re: [Fish-users] Introduction and plans for a book about Fish

2018-06-11 Thread Robert Carpenter
A year or so ago on this list, there was a lot of chatter about this doc: https://mvolkmann.github.io/fish-article/ > On Jun 11, 2018, at 15:46, Jesse Atkinson wrote: > > Signed PGP part > This is an awesome idea and something I think that Fish shell needs. It's > often hard to easily

Re: [Fish-users] expr command

2017-10-23 Thread Robert Carpenter
Mark, Good question. expr is a system command, so it's documented through the usual routes: https://linux.die.net/man/1/expr Robert > On Oct 23, 2017, at 07:50, Mark Volkmann wrote: > > What is the reason why the expr command is not documentation along with other

Re: [Fish-users] dirh numbers

2017-10-20 Thread Robert Carpenter
Hey Mark, Check out http://fishshell.com/docs/current/commands.html#prevd . I think that'll do what you're looking for. Robert > On Oct 20, 2017, at 11:36, Mark Volkmann wrote: > > dirh outputs a list of up the 25 of the past directories I've been in. > Entries in

Re: [Fish-users] fish_prompt.fish not getting called

2017-09-30 Thread Robert Carpenter
Hey Mark, I've seen this too, and I spent some time digging around in the source today and I don't think there is a way around it: https://github.com/fish-shell/fish-shell/blob/cb352317bdd421d140771de62c23ee3c32138502/src/screen.cpp#L956-L961 Someone can correct me if I'm wrong here, but I

Re: [Fish-users] how do I delete the fish shell history ?

2017-08-09 Thread Robert Carpenter
history clear sounds to me like it would do the trick based on this: https://fishshell.com/docs/current/commands.html#history > • clear clears the history file. A prompt is displayed before the history is > erased asking you to confirm you really want to clear all history unless > builtin

Re: [Fish-users] Print and update information below commandline?

2015-10-07 Thread Robert Carpenter
Hey Jakob, I thought I'd chime in with the implementation I have running, just for the sake of completion: fish -v fish, version 2.1.2-1228-g89da096 .config/fish/functions/expand-dot-to-parent-directory-path.fish : function expand-dot-to-parent-directory-path -d 'expand ... to ../.. etc'

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

2015-05-07 Thread Robert Carpenter
Aleksey, I honestly can't decide if you're trying to troll the mailing list or if you have legitimate questions. I'm going to take a risk of feeding the troll here in hopes that you're actually, honestly trying to understand fish-shell. To save yourself some time, I'll put the summation at the

Re: [Fish-users] Change default path from ~/ to ~/Sites

2014-06-18 Thread Robert Carpenter
In the past, my approach to this has been to just define an alias something along the lines of: alias scd cd ~/Sites At times, I've also taken the approach of instructing whatever Terminal app I'm using at the time to just start in whatever directory is occupying most of my time. You may

Re: [Fish-users] Creating a ramdisk with fish ?

2014-02-23 Thread Robert Carpenter
Yvon, Backticks are indeed the problem. Simply swap them out for parentheses and it should work as expected: diskutil erasevolume HFS+ Ram Disk (hdiutil attach -nomount ram://204800) Robert On Sun, Feb 23, 2014 at 10:34 AM, Yvon Thoraval yvon.thora...@gmail.comwrote: With shell fish i get :

[Fish-users] Control key to accept part of a command completion suggestion?

2013-12-03 Thread Robert Carpenter
Hi fish-users, I've been running a lot of similar commands lately and I've been really grateful for the fish command suggestion feature. One thing I've come across is a situation where I only want to take the next word or two from the suggestion and then finish the command differently from the

Re: [Fish-users] Control key to accept part of a command completion suggestion?

2013-12-03 Thread Robert Carpenter
. On Tue, Dec 3, 2013 at 9:47 AM, Robert Carpenter rob...@robacarp.com wrote: Hi fish-users, I've been running a lot of similar commands lately and I've been really grateful for the fish command suggestion feature. One thing I've come across is a situation where I only want to take the next

Re: [Fish-users] Proper way to put /usr/local/bin before /usr/bin/ in $PATH

2013-08-22 Thread Robert Carpenter
Hey Jesse, I ran into the exact same problem a few months ago. A friendly fish user suggested I explicitly set my path in config.fish and that has worked. The line in my ~/.config/fish/config.fish file is: set -x PATH /usr/local/bin /usr/bin /bin /usr/local/sbin /usr/sbin /sbin I'm sure there

[Fish-users] Rearranging my $PATH

2013-07-04 Thread Robert Carpenter
Hey Fish Users, My $PATH has the following: /usr/bin /bin /usr/sbin /sbin /usr/local/bin I've recently upgraded my git, and homebrew links it into /usr/local/bin, but the system git, which is installed in /usr/bin is still activated when I execute a git command. Homebrew has been warning me

Re: [Fish-users] “fg -”

2013-06-20 Thread Robert Carpenter
Elias, I do this all the time under fish and have no problem. ^z to background a running task, `jobs` to see what is running, `fg` or `fg N` to bring something forward. It even works with the `command ` syntax to background a job at command time. Robert On Thu, Jun 20, 2013 at 10:19 AM, Elias

Re: [Fish-users] Fish version of [[?

2013-06-16 Thread Robert Carpenter
Hey Robert, The fish replacement for [[ is test. See the docs here: http://fishshell.com/docs/2.0/commands.html#test For your specific application, you might get some mileage out of contains ( http://fishshell.com/docs/2.0/commands.html#contains ) or case (

Re: [Fish-users] aliasing pushd

2013-05-22 Thread Robert Carpenter
in the past, I think. Any other ideas? Thanks On Tue, May 21, 2013 at 5:25 PM, Robert Carpenter rob...@robacarp.comwrote: 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

Re: [Fish-users] aliasing pushd

2013-05-22 Thread Robert Carpenter
On Wed, May 22, 2013 at 4:01 PM, Robert Carpenter rob...@robacarp.comwrote: 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

Re: [Fish-users] aliasing pushd

2013-05-21 Thread Robert Carpenter
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

[Fish-users] Autoloading functions from .config/fish/functions seems to be broken, or I am missing something.

2013-02-18 Thread Robert Carpenter
Hello all, Little bit by little bit I've been porting bash functions from my bash workflow over to fish functions and have had great success, with one caveat. I haven't been able to get fish to autoload files from the functions/ directory at all. For now I'm just stashing everything in the