Skip to content

Commit

Permalink
fix: Resolve newline issue with command expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Aug 10, 2021
1 parent bd2f457 commit bcfce70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spaceship.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ export SPACESHIP_VERSION='3.14.0'

typeset -gAh SPACESHIP

# Common-used variable for new line separator
NEWLINE='
'
typeset -gAh SPACESHIP_CACHE

# Newline with zero-width space,
# because last newline is trimmed in command expansion.
# See: https://unix.stackexchange.com/a/248229
local NEWLINE=$'\n\u200b'

# Determination of Spaceship working directory
# https://git.io/vdBH7
Expand Down

0 comments on commit bcfce70

Please sign in to comment.