Skip to content

Commit

Permalink
Export SPACESHIP_CONFIG from Zsh plugins script
Browse files Browse the repository at this point in the history
  • Loading branch information
mphstudios committed May 31, 2023
1 parent a17050b commit 529a40e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion tag-zshell/zsh/plugins.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ zplug "oh-my-zsh/vi-mode", from:oh-my-zsh
# Spaceship Prompt @see https://spaceship-prompt.sh/getting-started/#Installing
zplug "spaceship-prompt/spaceship-prompt", use:spaceship.zsh, from:github, as:theme

export SPACESHIP_CONFIG="$HOME/.zsh/prompt.zsh"

# Terminal theme
zplug "dracula/zsh", as:theme

# Iinstall missing plugins, prompt user for confirmation
# Install missing plugins, prompt user for confirmation
if ! zplug check --verbose; then
printf "Install zplug plugins? [y/N]: "
if read -q; then
Expand Down
10 changes: 5 additions & 5 deletions tag-zshell/zsh/prompt.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SPACESHIP_PROMPT_ORDER=(
git
jobs
ruby
pyenv
python
venv
node
line_sep
Expand Down Expand Up @@ -56,10 +56,10 @@ SPACESHIP_GIT_STATUS_DIVERGED='⇡⇣' # alt '∓' or '⇡⇣'
SPACESHIP_JOBS_COLOR='blue'
SPACESHIP_JOBS_SYMBOL=''

SPACESHIP_PYENV_PREFIX=' '
SPACESHIP_PYENV_SUFFIX=''
SPACESHIP_PYENV_COLOR='yellow'
SPACESHIP_PYENV_SYMBOL='Python '
SPACESHIP_PYTHON_PREFIX=' '
SPACESHIP_PYTHON_SUFFIX=''
SPACESHIP_PYTHON_COLOR='yellow'
SPACESHIP_PYTHON_SYMBOL='Python '

SPACESHIP_VENV_PREFIX='('
SPACESHIP_VENV_SUFFIX=')'
Expand Down

0 comments on commit 529a40e

Please sign in to comment.