Skip to content

CPatchane/config-fish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Fish configuration

My personal fish prompt configuration. I prefer it on a black background but it can fit with other background colors.

Screenshots

fish_prompt_white

fish_prompt

Screenshots made using iTerm2 app (not from the OS X Terminal app)

Features

Mainly:

Environements

This configuration handle some environments if it found the related command (see ./env directory):

  • [if nodenv installed] Initialize a Node environment using nodenv
  • [if rbenv installed] Initialize a Ruby environment using rbenv
  • [if pyenv installed] Initialize a Python environment using pyenv with virtualenv management (pyenv-virtualenv)
  • [if go installed] Set Go environment variables
  • [if [email protected] installed] Set environment variables and CLIs paths for [email protected]

You can install all these packages if you use brew as a packages manager: brew install nodenv rbenv go pyenv pyenv-virtualenv [email protected]

Private / Local configurations

You can add private/local only configurations/environments/aliases if you need to. Just add a private.fish which will be ignored by git and won't be commited:

  • in the root folder for a private fish configuration
  • in the env/ folder for a private environment set up
  • in the aliases/ folder for private aliases

How to install it? (macOS)

  1. If it's not done yet, install fish using brew by doing brew install fish. Then run fish in your terminal to use the fish shell. This configuration need a recent fish version (v3.1+).

  2. Install the nerdfont of your choice and use it in your terminal. As the prompt will use some special characters from these fonts, you will need it if you want to have all icons.

  3. Put all the config files and folders (this repository content) in your ~/.config/fish folder. This latter should already be present if you've installed fish. You can also simply remove the original config folder and git clone like following:

    mv ~/.config/fish /tmp/
    git clone https://github.com/CPatchane/config-fish.git ~/.config/fish
    
  4. Load your config by doing source ~/.config/fish (it should be run by default when opening a new shell with fish)

About

My personal fish prompt configuration

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages