Skip to main content

All Questions

Tagged with
17 votes
3 answers
8k views

Make bash as close to fish as possible

I love the fish shell and use it exclusively in MacOS but I use bash everywhere else because its the only thing installed. Having felt the pain of maintaining configuration files for the two shells, I'...
gnzlbg's user avatar
  • 271
1 vote
1 answer
432 views

What, if any, is the equivalent of bash's select...in...do..done in fish?

I had finessed in bash a function that changes to any directory below the current working directory by having that directory name as a parameter to the function. If there are multiple results by that ...
Joel Maxuel's user avatar
11 votes
3 answers
19k views

Reuse .bash_profile for Fish in Mac

I'm using iTerm on my Mac and I have a .bash_profile that I have been comfortably using. I recently got to know about fish bash and I installed it on my Mac and all of a sudden my .bash_profile is not ...
joesan's user avatar
  • 221
5 votes
1 answer
973 views

In fish shell, which command is equivalent to bash's compgen?

compgen is a useful command, and fish is an excellent command shell. But I cannot find an equivalent in fish. I write one by myself: function compgen --description 'Print a list of documented fish ...
TorosFanny's user avatar
1 vote
2 answers
1k views

Ctrl-enter for fish shell

I had tried to create some accept completion and execute right away combination in fish on pressing Ctrl+Enter. function fish_user_key_bindings bind \c\n accept-autosuggestion execute end ...
Michael's user avatar
  • 217
0 votes
1 answer
378 views

Trouble installing fish shell on OS X non-admin user group

I am struggling to install the fish shell on OS X El Capitan. My user structure is setup so I have an administrator account and a standard account. The standard account is the one that I use and ...
badfilms's user avatar
0 votes
0 answers
232 views

using FISH shell -- set default folder for multiple tabs?

I'm using fish shell in OS X. Using the standard bash shell, you can open multiple tabs in Terminal, cd to a different directory in each, and then save the setup as a Window Group (via Window > ...
brandonscript's user avatar
11 votes
3 answers
10k views

How to get Fish shell and NVM both installed with Homebrew to work together?

I am trying to manage my packages for OSX using Homebrew as much a I can. I have installed both the Fish Shell and NVM using Homebrew but cannot get Fish to recognize my NVM installation. NVM ...
Sam's user avatar
  • 121
1 vote
1 answer
257 views

Custom bash 'context' when running from FISH

First of all, I'm on OSX10. My default shell is BASH, which I have set up (through .profile and .bashrc) to automatically run the FISH shell when I open my terminal emulator. This allows me to set up ...
Henrik Hillestad Løvold's user avatar
21 votes
2 answers
20k views

Is there a way to "source" a sh script from the fish shell?

I like to put many of my environment variable definitions in the .profile script. If I am using a POSIX-compatible interactive shell like bash, I can use the source command to re-export the ...
hugomg's user avatar
  • 669
1 vote
1 answer
649 views

"." command doesn't work in fish

I'm using fish and I'm trying to activate a virtual env, so I tried "source" command which apparently is not available in fish. And I ended up with this link which says: ". (a single period) is an ...
Taxellool's user avatar
  • 111
50 votes
7 answers
20k views

What is the equivalent of bash's !$ and !! in the fish shell?

I've been using bash for a decade or so and have gotten used to being able to type !$ to repeat the last argument, e.g.: $ mkdir foo $ cd !$ cd foo (That last line is printed by the shell to tell ...
Frank Schmitt's user avatar
2 votes
1 answer
1k views

How do I run make && make install while in fish shell

I have installed the fish shell, and I'm very happy with it ... but I cannot run the following command: make && make install This works nicely in bash... How do I run it in fish shell?
Ferenc Deak's user avatar
5 votes
2 answers
2k views

Go-lang go tool works with Bash but not Fish

For those of you who have no idea what Fish is: http://fishshell.com/ Similarly, if you are not familiar with a Go coding environment and still wish to try and figure out this small puzzle, here is ...
Logan's user avatar
  • 220
4 votes
1 answer
1k views

Quote or bracket completion in bash, without pressing TAB

Is there any way to have bash autocomplete matching symbols like '"[{( with their right handed counterparts? I would like to do this without having to press tab. For example typing the string echo " ...
codysehl's user avatar
  • 348

15 30 50 per page