Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active September 24, 2024 23:19
Show Gist options
  • Select an option

  • Save wilmoore/58e9d78365ef207fac576cd881aca17c to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/58e9d78365ef207fac576cd881aca17c to your computer and use it in GitHub Desktop.
Software Engineering :: Operating Systems :: Linux :: Command :: Shell :: Fish

Software Engineering :: Operating Systems :: Linux :: Command :: Shell :: Fish

⪼ Made with 💜 by Polyglot.

Install & Setup

brew install fish
which fish | sudo tee -a /etc/shells
chsh -s $(which fish)

Custom Prompt

Conditionals

  if test "$GIST_GITHUB_API_TOKEN" = ""
    echo 'Create a personal access token with `gist` scope and export as `GIST_GITHUB_API_TOKEN`'
    echo ''

    echo '> security add-generic-password -a $USER -s GIST_GITHUB_API_TOKEN -w *******'
    echo '> set -x GIST_GITHUB_API_TOKEN (security find-generic-password -s GIST_GITHUB_API_TOKEN -w)
'

    echo 'https://github.com/settings/tokens/new?scopes=gist&description=GIST_GITHUB_API_TOKEN'
    return 1
  end

Advocacy


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