Skip to content

jwillikers/fish-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fish Config

My configuration for the fish shell.

Usage

This repository contains the configuration files for fish. This file is synchronized using this Git repository. The following instructions detail how to use and sync this repository.

Set up

My fish configuration relies on several other utilities: carapace-bin for completions, GCR for the SSH agent, and Starship for the prompt configuration. These utilities must be installed before utilizing the configuration.

  1. Add the rsteube user’s RPM repository to your system which provides the carapace-bin package.

    /etc/yum.repos.d/rsteube-fury.repo
    [fury]
    name=Gemfury Private Repo
    baseurl=https://yum.fury.io/rsteube/
    enabled=1
    gpgcheck=0
  2. Add the starship COPR repository to your system.

    curl --location https://copr.fedorainfracloud.org/coprs/atim/starship/repo/fedora/atim-starship-fedora.repo \
      | sudo tee /etc/yum.repos.d/atim-starship-fedora.repo
  3. Install the packages.

    sudo rpm-ostree install carapace-bin fish gcr starship
  4. Reboot for the changes to take effect.

    sudo systemctl reboot
  5. Enable the GCR SSH agent socket for the user.

    systemctl --user enable --now gcr-ssh-agent.socket

Install

Install these settings with the following instructions.

  1. Clone this repository.

    git -C ~/Projects clone [email protected]:jwillikers/fish-config.git
  2. Create the ~/.config/fish/conf.d directory.

    mkdir --parents ~/.config/fish/conf.d
  3. Symlink the configuration files in the fish/conf.d directory to the fish configuration directory.

    ln --relative --symbolic --force ~/Projects/fish-config/fish/conf.d/*.fish ~/.config/fish/conf.d/
  4. Set the SSH_AUTH_SOCK environment variable to the GCR SSH agent socket.

    set --universal --export SSH_AUTH_SOCK $XDG_RUNTIME_DIR/gcr/ssh
  5. Follow the install instructions in the Starship config repository to configure the prompt.

  6. Open a new shell to complete the installation.

Code of Conduct

Please refer to the project’s Code of Conduct.

License

This repository is licensed under the GPLv3. Please refer to the bundled license.

© 2023-2024 Jordan Williams

Authors