You can preview different settings, including colors and prompts, before applying them. It allows you to customize various settings, themes, prompts, and more. For example, if you mistype /usr as /user, Fish will promptly highlight the error in red.įish offers a unique web-based configuration interface that you can access by running fish_config. This feature also works for directory paths. If you make a typo in a command, Fish will point it out with red letters, like our example below where we mispel “clear” as “clare” ~> fish_update_completions Syntax highlightingįish Shell comes with syntax highlighting out of the box. Thankfully, this can be accomplished fairly easily with the following command: Instead, these updates must be pushed to Fish. With these functions, practically anything you’re looking for can be autocompleted using the tab key.Ī note: Since the completion of subcommands and options are generated through the man of each application, completion functionality will not be compatible with software installed at any point after Fish is installed. For instance, typing ssh followed by a space and then tab will give you a list of potential connections registered in known_hosts.įish also supports scanning through subdirectories using commands like /*/. This suggestion functionality isn’t just for paths it extends to Linux commands and functions too. Use the tab key or arrow keys to move through each. Just type in /s and hit the tab key twice to display an overview of all directories that begin with /s. And in cases where there’s no clear suggestion, Fish provides a user-friendly list for you to choose from. If multiple options share the same starting characters, Fish sorts them alphabetically and suggests the first one. For instance, try changing directories by typing /usr into the command line.įish suggests /usr/ without even pressing tab. One of the standout features of Fish is its suggestion and completion functionality. Let’s take a closer look: Suggestion and completion Fish functionalityįish Shell brings a unique flavor to your command line experience with its powerful features. $ sudo apt – add – repository ppa : fish – shell / release – 2įor other operating systems like Debian, you can find installation instructions on the official Fish website. Be sure to get the official Personal Package Archives (PPA) repository because using a distribution package manager might get you an older version. Just run this command: 1įor Linux users, the process is straightforward but a tad different. Installing Fish Shell is a breeze, especially if you’re using Homebrew on a Mac. It boasts powerful suggestion/auto-completion functionality, friendly syntax highlighting, and its GUI (browser)-based settings/help pages are usable straight out of the box, so to speak. What sets Fish apart from its competition? For starters, it was developed more recently than its counterparts (with an initial release in 2005), making it a modern and highly functional choice for your command line tasks. Courtesy of Github, this user-friendly command line shell was developed with a special emphasis on user experience. Fish itself stands for Friendly Interactive SHell. What is Fish Shell?Īs the “sh” at the end of its name implies, Fish is a shell. Let’s dive into what makes Fish Shell a standout choice for your command line needs. If you’re tired of the same old terminal experience, Fish Shell (or just Fish for short) might be the breath of fresh air you need.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |