


Note how the green check mark changes into orange solid dot when the git repository status changes from clean to unstaged.

I used the urdh theme, which shows git information in the following manner:
#ADD TO PATH FISH SHELL INSTALL#
Tacklebox allows you to easily install community-scrutinized themes, plugins and modules which usually work out-of-the-box. With fish, you can get this functionality and many other features by installing tacklebox.
#ADD TO PATH FISH SHELL HOW TO#
You may already know how to change your bash command prompt to show your git branch and git status. With fish, switches are completed just like the files and folders without even pressing the Tab key. # bash does not provide switch-completion For example, in bash, typing tree - and pressing Tab will not yield any results. Fish’s auto-completion looks through the switches of a command and completes them for you. Repeatedly pressing the Tab key cycles through all the possible completions, thus eliminating the need to type in more characters.Īnother important completion in fish is the switch-completion, which is absent in bash. Fish’s Tab-completion shows all possible completions like bash, but it goes a step further. I recommend you try it out to see how good it feels.įurther, fish’s Tab-completion is different than bash’s. Fish’s →-key completion works even when completion is non-unique. The user, then, has to type enough letters to make the completion unique. This completion is different than bash’s Tab-completion, which does not perform completion when the completion is non-unique.īash’s Tab-completion instead provides the user with all possible completions. You can find more examples here and here.Īnother cool feature is →-key completion in which pressing the → arrow key completes the current completion. Again, all of this happens before you press the Tab key.

If the letters you’ve typed do not correspond to any matching completion, you see the letters in red. The already typed letters appear as underlined, cyan colored and the rest of the untyped letters appear in grey. For example, if a folder is present, you see the entire name of the folder even before you press a Tab key. The most prominent feature of fish is the colorful, underlined prompt which provides more visual feedback than bash. With fish, you can install the fish-equivalent, fishmarks instead.Ĭolorful, underlined prompt and smarter completions One such an example is the bashmarks utility which helps you jump between folders in bash. Instead, you would probably need fish-equivalents of those utilites. These are the ways you can add your personal bin folder to path in bash and fish, respectivelyįish and bash are different enough that you may not be able to use some bash designed utilities directly. One such example is setting the value of a variable. Many commands and constructs in fish work the same way as bash but there some commands that don’t work the same way. Features of fishīefore we even begin, let’s note that fish and bash are different, just like csh and bash are different. I have also provided links to the most useful posts which might save you some time. On this page, my aim is to give you a quick overview of the most important features of fish so that you can make up your mind. There are many excellent posts and documentation on the web about installing, setting up and using the fish shell. With fish, you get these features out of the box (for the most part). If you’ve already got a very heavily configured traditional shell (like bash) then you probably have replacements for many features of fish. Fish is a new shell which makes using the command line much easier.
