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
0edf416b
Commit
0edf416b
authored
Feb 09, 2015
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporarily delete over-engineered solution
parent
448e9661
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
misc.zsh
lib/misc.zsh
+3
-10
No files found.
lib/misc.zsh
View file @
0edf416b
...
@@ -16,14 +16,7 @@ alias please='sudo'
...
@@ -16,14 +16,7 @@ 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'
## how to interpret text characters
# only define LC_CTYPE if undefined
if
[[
-z
"
$LC_CTYPE
"
&&
-z
"
$LC_ALL
"
]]
;
then
# only define if undefined
if
[[
-z
"
$LC_CTYPE
"
&&
-z
"
$LC_ALL
"
]]
;
then
export
LC_CTYPE
=
${
LANG
%%
:
*
}
# pick the first entry from LANG
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.
fi
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