mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +00:00
Ensure that LC_CTYPE IS NOT overwritten by P9K
This commit is contained in:
parent
3d960a5169
commit
4ebb9f92a1
1 changed files with 18 additions and 12 deletions
|
@ -17,52 +17,58 @@ function tearDown() {
|
||||||
LC_CTYPE="${_OLD_LC_CTYPE}"
|
LC_CTYPE="${_OLD_LC_CTYPE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function testLcCtypeIsSetCorrectlyInDefaultMode() {
|
function testLcCtypeIsNotOverwrittenInDefaultMode() {
|
||||||
local POWERLEVEL9K_MODE="default"
|
local POWERLEVEL9K_MODE="default"
|
||||||
|
local LC_CTYPE="my-locale"
|
||||||
# Load Powerlevel9k
|
# Load Powerlevel9k
|
||||||
source functions/icons.zsh
|
source functions/icons.zsh
|
||||||
|
|
||||||
assertEquals 'en_US.UTF-8' "${LC_CTYPE}"
|
assertEquals 'my-locale' "${LC_CTYPE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function testLcCtypeIsSetCorrectlyInAwesomePatchedMode() {
|
function testLcCtypeIsNotOverwrittenInAwesomePatchedMode() {
|
||||||
local POWERLEVEL9K_MODE="awesome-patched"
|
local POWERLEVEL9K_MODE="awesome-patched"
|
||||||
|
local LC_CTYPE="my-locale"
|
||||||
# Load Powerlevel9k
|
# Load Powerlevel9k
|
||||||
source functions/icons.zsh
|
source functions/icons.zsh
|
||||||
|
|
||||||
assertEquals 'en_US.UTF-8' "${LC_CTYPE}"
|
assertEquals 'my-locale' "${LC_CTYPE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function testLcCtypeIsSetCorrectlyInAwesomeFontconfigMode() {
|
function testLcCtypeIsNotOverwrittenInAwesomeFontconfigMode() {
|
||||||
local POWERLEVEL9K_MODE="awesome-fontconfig"
|
local POWERLEVEL9K_MODE="awesome-fontconfig"
|
||||||
|
local LC_CTYPE="my-locale"
|
||||||
# Load Powerlevel9k
|
# Load Powerlevel9k
|
||||||
source functions/icons.zsh
|
source functions/icons.zsh
|
||||||
|
|
||||||
assertEquals 'en_US.UTF-8' "${LC_CTYPE}"
|
assertEquals 'my-locale' "${LC_CTYPE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function testLcCtypeIsSetCorrectlyInNerdfontFontconfigMode() {
|
function testLcCtypeIsNotOverwrittenInNerdfontFontconfigMode() {
|
||||||
local POWERLEVEL9K_MODE="nerdfont-fontconfig"
|
local POWERLEVEL9K_MODE="nerdfont-fontconfig"
|
||||||
|
local LC_CTYPE="my-locale"
|
||||||
# Load Powerlevel9k
|
# Load Powerlevel9k
|
||||||
source functions/icons.zsh
|
source functions/icons.zsh
|
||||||
|
|
||||||
assertEquals 'en_US.UTF-8' "${LC_CTYPE}"
|
assertEquals 'my-locale' "${LC_CTYPE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function testLcCtypeIsSetCorrectlyInFlatMode() {
|
function testLcCtypeIsNotOverwrittenInFlatMode() {
|
||||||
local POWERLEVEL9K_MODE="flat"
|
local POWERLEVEL9K_MODE="flat"
|
||||||
|
local LC_CTYPE="my-locale"
|
||||||
# Load Powerlevel9k
|
# Load Powerlevel9k
|
||||||
source functions/icons.zsh
|
source functions/icons.zsh
|
||||||
|
|
||||||
assertEquals 'en_US.UTF-8' "${LC_CTYPE}"
|
assertEquals 'my-locale' "${LC_CTYPE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function testLcCtypeIsSetCorrectlyInCompatibleMode() {
|
function testLcCtypeIsNotOverwrittenInCompatibleMode() {
|
||||||
local POWERLEVEL9K_MODE="compatible"
|
local POWERLEVEL9K_MODE="compatible"
|
||||||
|
local LC_CTYPE="my-locale"
|
||||||
# Load Powerlevel9k
|
# Load Powerlevel9k
|
||||||
source functions/icons.zsh
|
source functions/icons.zsh
|
||||||
|
|
||||||
assertEquals 'en_US.UTF-8' "${LC_CTYPE}"
|
assertEquals 'my-locale' "${LC_CTYPE}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Go through all icons defined in default mode, and
|
# Go through all icons defined in default mode, and
|
||||||
|
|
Loading…
Reference in a new issue