From 811b50a5e51844ca74131c6b0a38082180118539 Mon Sep 17 00:00:00 2001 From: Shaun Setlock Date: Tue, 31 Dec 2024 13:58:38 -0500 Subject: [PATCH] Added documentation for fish setup, and included configs for RedHat and Debian distros. --- fish/README.md | 24 ++++++++++++++++++++++++ fish/config.fish | 10 ++++++---- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 fish/README.md diff --git a/fish/README.md b/fish/README.md new file mode 100644 index 0000000..f32db3a --- /dev/null +++ b/fish/README.md @@ -0,0 +1,24 @@ +# Shaun's `fish` Dotfiles + +## Location +The configuration files need to be present at this location, `~/.config/fish`. So, we can use the following command to softlink/symlink, + +```bash +ln -s ~/.config/fish +# e.g. +# ln -s ~/dotfiles/fish ~/.config/fish +``` +Ensure the file is adjusted (or a copy is made instead) which uncomments lines for the corresponding linux distro. + +## Install Powerline Font +This font is expected within our configuration so we should install it. +```bash +dnf install powerline +``` + +## Install Oh My Fish (`omf`) +This addon is expected within our configuration so we should install it. +```bash +dnf install fish +curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish +``` diff --git a/fish/config.fish b/fish/config.fish index 55961ff..8d0521f 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -1,7 +1,9 @@ -# set powerline prompt goodness -set fish_function_path $fish_function_path "/usr/share/powerline/bindings/fish" +# For Debian-based Distro +#set fish_function_path $fish_function_path /usr/share/powerline/bindings/fish #source /usr/share/powerline/bindings/fish/powerline-setup.fish #powerline-setup -# set mcfly to alias reverse searches -#mcfly init fish | source +# For RedHat-based Distro +set fish_function_path $fish_function_path /usr/share/powerline/bindings/fish +source /usr/share/powerline/fish/powerline-setup.fish +powerline-setup