A config file to both starship and oh-my-posh is made. Add it to:
- for bash, add the following to
.bashrc
# run starship prompt shell
eval "$(starship init bash)"
# or
# run oh my posh prompt shell
eval "$(oh-my-posh init bash --config '~/.config/oh-my-posh.omp.json')"
# replace `~` with .config file path
- for cmd, add
./oh-my-posh.lua
or./starship.lua
to the clink scripts directory - for powershell, add the following line to your
$PROFILE
(Microsoft.PowerShell_profile.ps1
):
# STARSHIP CONFIG
# $ENV:STARSHIP_CONFIG = "$HOME\.config\starship.toml"
# # $ENV:STARSHIP_DISTRO = "➜ xcad"
# Invoke-Expression (&starship init powershell)
# or
# OH MY POSH CONFIG
oh-my-posh init pwsh --config "$HOME\.config\oh-my-posh.omp.json" | Invoke-Expression