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
2f769198
Commit
2f769198
authored
Feb 10, 2015
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3563 from mcornella/fix-unicode-locale
Fix Unicode problems by only setting LC_CTYPE if not set
parents
8830f65c
0edf416b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
misc.zsh
lib/misc.zsh
+5
-2
No files found.
lib/misc.zsh
View file @
2f769198
...
@@ -9,11 +9,14 @@ setopt long_list_jobs
...
@@ -9,11 +9,14 @@ setopt long_list_jobs
export
PAGER
=
"less"
export
PAGER
=
"less"
export
LESS
=
"-R"
export
LESS
=
"-R"
export
LC_CTYPE
=
$LANG
## super user alias
## super user alias
alias
_
=
'sudo'
alias
_
=
'sudo'
alias
please
=
'sudo'
alias
please
=
'sudo'
## more intelligent acking for ubuntu users
## more intelligent acking for ubuntu users
alias
afind
=
'ack-grep -il'
alias
afind
=
'ack-grep -il'
# only define LC_CTYPE if undefined
if
[[
-z
"
$LC_CTYPE
"
&&
-z
"
$LC_ALL
"
]]
;
then
export
LC_CTYPE
=
${
LANG
%%
:
*
}
# pick the first entry from LANG
fi
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