Skip to content

Commit

Permalink
fix: change wrong env variables (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
Runrioter committed May 29, 2020
1 parent 50e371f commit 56c7e5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Options.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ Shows current version of Xcode. Local version has more priority than global.
| Variable | Default | Meaning |
| :------- | :-----: | ------- |
| `SPACESHIP_XCODE_SHOW_LOCAL` | `true` | Current local Xcode version based on [xcenv] |
| `SPACESHIP_XCODE_SHOW_GLOBAL` | `true` | Global Xcode version based on [xcenv] |
| `SPACESHIP_XCODE_SHOW_GLOBAL` | `false` | Global Xcode version based on [xcenv] |
| `SPACESHIP_XCODE_PREFIX` | `$SPACESHIP_PROMPT_DEFAULT_PREFIX` | Prefix before Xcode section |
| `SPACESHIP_XCODE_SUFFIX` | `$SPACESHIP_PROMPT_DEFAULT_SUFFIX` | Suffix after Xcode section |
| `SPACESHIP_XCODE_SYMBOL` | `🛠·` | Character to be shown before Xcode version |
Expand Down
4 changes: 2 additions & 2 deletions sections/xcode.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ spaceship_xcode() {

local 'xcode_path'

if [[ $SPACESHIP_SWIFT_SHOW_GLOBAL == true ]] ; then
if [[ $SPACESHIP_XCODE_SHOW_GLOBAL == true ]] ; then
xcode_path=$(xcenv version | sed 's/ .*//')
elif [[ $SPACESHIP_SWIFT_SHOW_LOCAL == true ]] ; then
elif [[ $SPACESHIP_XCODE_SHOW_LOCAL == true ]] ; then
if xcenv version | grep ".xcode-version" > /dev/null; then
xcode_path=$(xcenv version | sed 's/ .*//')
fi
Expand Down

0 comments on commit 56c7e5d

Please sign in to comment.