Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
0edf416b
Commit
0edf416b
authored
Feb 09, 2015
by
Marc Cornellà
Browse files
Temporarily delete over-engineered solution
parent
448e9661
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/misc.zsh
View file @
0edf416b
...
...
@@ -16,14 +16,7 @@ alias please='sudo'
## more intelligent acking for ubuntu users
alias
afind
=
'ack-grep -il'
## how to interpret text characters
if
[[
-z
"
$LC_CTYPE
"
&&
-z
"
$LC_ALL
"
]]
;
then
# only define if undefined
export
LC_CTYPE
=
${
LANG
%%
:
*
}
# pick the first entry from LANG
[[
-z
"
$LC_CTYPE
"
]]
&&
\
export
LC_CTYPE
=
`
locale
-a
|
grep
en_US.utf8 |
head
-1
`
[[
-z
"
$LC_CTYPE
"
]]
&&
\
export
LC_CTYPE
=
`
locale
-a
|
grep
en_US |
head
-1
`
[[
-z
"
$LC_CTYPE
"
]]
&&
\
export
LC_CTYPE
=
C
# default to internal encoding.
# 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