Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
c82deedc
Commit
c82deedc
authored
Jul 03, 2015
by
Andrew Janke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agnoster: Protect Unicode esape sequences with local LC_* settings
parent
4cd281ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
agnoster.zsh-theme
themes/agnoster.zsh-theme
+19
-12
No files found.
themes/agnoster.zsh-theme
View file @
c82deedc
...
@@ -32,17 +32,19 @@ CURRENT_BG='NONE'
...
@@ -32,17 +32,19 @@ CURRENT_BG='NONE'
# Special Powerline characters
# Special Powerline characters
# NOTE: This segment separator character is correct. In 2012, Powerline changed
()
{
# the code points they use for their special characters. This is the new code point.
local
LC_ALL
=
""
LC_CTYPE
=
"en_US.UTF-8"
# If this is not working for you, you probably have an old version of the
# NOTE: This segment separator character is correct. In 2012, Powerline changed
# Powerline-patched fonts installed. Download and install the new version.
# the code points they use for their special characters. This is the new code point.
# Do not submit PRs to change this unless you have reviewed the Powerline code point
# If this is not working for you, you probably have an old version of the
# history and have new information.
# Powerline-patched fonts installed. Download and install the new version.
# This is defined using a Unicode escape sequence so it is unambiguously readable, regardless of
# Do not submit PRs to change this unless you have reviewed the Powerline code point
# what font the user is viewing this source code in. Do not replace the
# history and have new information.
# escape sequence with a single literal character.
# This is defined using a Unicode escape sequence so it is unambiguously readable, regardless of
SEGMENT_SEPARATOR
=
'\ue0b0'
#
# what font the user is viewing this source code in. Do not replace the
# escape sequence with a single literal character.
SEGMENT_SEPARATOR
=
$'
\u
e0b0'
#
}
# Begin a segment
# Begin a segment
# Takes two arguments, background and foreground. Both can be omitted,
# Takes two arguments, background and foreground. Both can be omitted,
...
@@ -83,7 +85,12 @@ prompt_context() {
...
@@ -83,7 +85,12 @@ prompt_context() {
# Git: branch/detached head, dirty status
# Git: branch/detached head, dirty status
prompt_git
()
{
prompt_git
()
{
local
PL_BRANCH_CHAR
=
'\ue0a0'
#
local
PL_BRANCH_CHAR
()
{
local
LC_ALL
=
""
LC_CTYPE
=
"en_US.UTF-8"
PL_BRANCH_CHAR
=
$'
\u
e0a0'
#
}
local
ref dirty mode repo_path
local
ref dirty mode repo_path
repo_path
=
$(
git rev-parse
--git-dir
2>/dev/null
)
repo_path
=
$(
git rev-parse
--git-dir
2>/dev/null
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment