Skip to content

Instantly share code, notes, and snippets.

@lovemecomputer
Last active May 6, 2021 06:36
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lovemecomputer/3e61a20279db27b4aef108a419fc272e to your computer and use it in GitHub Desktop.
Save lovemecomputer/3e61a20279db27b4aef108a419fc272e to your computer and use it in GitHub Desktop.
fish config notes

fish shell and powerline notes CLI config

CLI screenshot greeting with rainbow

💻 app, theme, powerline theme

In the screenshot above, i'm using:

🌈 rainbow welcome prompt

requires the ruby gem lolcat

fish config

  • add this line to file .config/fish/config.fish:
    • set -gx PATH ~/.gem/ruby/2.3.0/bin $PATH
      • this will allow fish to run ruby gems with this version of ruby. this may be specific to my computer, and the path may need to be changed to fit your configuration or your version of ruby 🙃

my full .config/fish/config.fish file:

set -gx PATH ~/.gem/ruby/2.3.0/bin $PATH
function fish_prompt
    powerline-shell --shell bare $status
end

the greeting script for fish

file: .config/fish/functions/fish_greeting.fish

function fish_greeting
	for i in (seq 7)
    for i in (seq (tput cols))
      printf █
    end

  echo
  end | lolcat --freq=0.8 --spread (tput cols)
end

(this rainbow is from https://gist.github.com/florida/1839b047792b2d58f208a0913d4b2a6e), thanks @florida


// TODO: i also have this working in zsh and should add that info here!


CLI screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment