diff --git a/knowledge base/fish.md b/knowledge base/fish.md index f1d0e67..055c656 100644 --- a/knowledge base/fish.md +++ b/knowledge base/fish.md @@ -4,6 +4,7 @@ The friendly interactive shell. 1. [TL;DR](#tldr) 1. [Configuration](#configuration) +1. [Prompt](#prompt) 1. [Further readings](#further-readings) 1. [Sources](#sources) @@ -44,11 +45,17 @@ end `fish` offers a web-based configuration interface. Open it executing `fish_config`. +## Prompt + +See [Starship] or Tide. + ## Further readings - [Website] - [`bash`][bash] - [`zsh`][zsh] +- [Starship] (prompt) +- [Oh My Fish][oh-my-fish] ## Sources @@ -66,6 +73,8 @@ All the references in the [further readings] section, plus the following: [bash]: bash.md +[oh-my-fish]: https://github.com/oh-my-fish/oh-my-fish +[starship]: starship.md [zsh]: zsh.md diff --git a/knowledge base/nerd fonts.md b/knowledge base/nerd fonts.md new file mode 100644 index 0000000..6eb2f77 --- /dev/null +++ b/knowledge base/nerd fonts.md @@ -0,0 +1,37 @@ +# Nerd fonts + +1. [TL;DR](#tldr) +1. [Further readings](#further-readings) +1. [Sources](#sources) + +## TL;DR + +```sh +# Installation. +brew tap 'homebrew/cask-fonts' && brew install 'font-hack-nerd-font' +``` + +## Further readings + +- [Website] + +## Sources + +All the references in the [further readings] section, plus the following: + +- [Github] + + + + +[further readings]: #further-readings + + + + +[github]: https://github.com/ryanoasis/nerd-fonts +[website]: https://www.nerdfonts.com/ + + diff --git a/knowledge base/starship.md b/knowledge base/starship.md new file mode 100644 index 0000000..eba8ef9 --- /dev/null +++ b/knowledge base/starship.md @@ -0,0 +1,72 @@ +# Starship + +Fast and customizable prompt for most shells. + +1. [TL;DR](#tldr) +1. [Configuration](#configuration) +1. [Further readings](#further-readings) +1. [Sources](#sources) + +## TL;DR + +```sh +# Installation. +brew install 'starship' +zypper in 'starship' + +# Start when the shell starts. +eval "$(starship init bash)" | tee -a ~'/.bashrc' +echo 'starship init fish | source' | tee -a ~'/.config/fish/config.fish' +eval "$(starship init zsh)" | tee -a ~'/.zshrc' + +# Initialize starship configuration. +mkdir -p ~'/.config' && touch ~'/.config/starship.toml' + +# List available presets (prompt styles). +starship preset -l +``` + +## Configuration + +```sh +# ~/.config/starship.toml + +# Get editor completions based on the config schema. +"$schema" = 'https://starship.rs/config-schema.json' + +# Replace the default '❯' symbol in the prompt with '$'. +# The '$' character needs to be escaped. +[character] +success_symbol = '[\$](bold green)' +``` + +## Further readings + +- [Website] +- [Nerd fonts] + +## Sources + +All the references in the [further readings] section, plus the following: + +- [Github] + + + + +[further readings]: #further-readings + + +[bash]: bash.md +[fish]: fish.md +[nerd fonts]: nerd%20fonts.md +[zsh]: zsh.md + + + +[github]: https://github.com/starship/starship +[website]: https://starship.rs/ + +