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
dac2a6e2
Commit
dac2a6e2
authored
Aug 20, 2014
by
Fredrik Fornwall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace /usr/bin/env with env
Some environments (such as Android) does not have /usr/bin.
parent
1b7a3ea9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
functions.zsh
lib/functions.zsh
+2
-2
oh-my-zsh.sh
oh-my-zsh.sh
+1
-1
check_for_upgrade.sh
tools/check_for_upgrade.sh
+1
-1
install.sh
tools/install.sh
+2
-2
No files found.
lib/functions.zsh
View file @
dac2a6e2
...
...
@@ -3,11 +3,11 @@ function zsh_stats() {
}
function
uninstall_oh_my_zsh
()
{
/usr/bin/
env
ZSH
=
$ZSH
/bin/sh
$ZSH
/tools/uninstall.sh
env
ZSH
=
$ZSH
/bin/sh
$ZSH
/tools/uninstall.sh
}
function
upgrade_oh_my_zsh
()
{
/usr/bin/
env
ZSH
=
$ZSH
/bin/sh
$ZSH
/tools/upgrade.sh
env
ZSH
=
$ZSH
/bin/sh
$ZSH
/tools/upgrade.sh
}
function
take
()
{
...
...
oh-my-zsh.sh
View file @
dac2a6e2
# Check for updates on initial load...
if
[
"
$DISABLE_AUTO_UPDATE
"
!=
"true"
]
;
then
/usr/bin/
env
ZSH
=
$ZSH
DISABLE_UPDATE_PROMPT
=
$DISABLE_UPDATE_PROMPT
zsh
-f
$ZSH
/tools/check_for_upgrade.sh
env
ZSH
=
$ZSH
DISABLE_UPDATE_PROMPT
=
$DISABLE_UPDATE_PROMPT
zsh
-f
$ZSH
/tools/check_for_upgrade.sh
fi
# Initializes Oh My Zsh
...
...
tools/check_for_upgrade.sh
View file @
dac2a6e2
...
...
@@ -9,7 +9,7 @@ function _update_zsh_update() {
}
function
_upgrade_zsh
()
{
/usr/bin/
env
ZSH
=
$ZSH
/bin/sh
$ZSH
/tools/upgrade.sh
env
ZSH
=
$ZSH
/bin/sh
$ZSH
/tools/upgrade.sh
# update the zsh file
_update_zsh_update
}
...
...
tools/install.sh
View file @
dac2a6e2
...
...
@@ -10,7 +10,7 @@ if [ -d "$ZSH" ]; then
fi
echo
"
\0
33[0;34mCloning Oh My Zsh...
\0
33[0m"
hash
git
>
/dev/null 2>&1
&&
/usr/bin/
env git clone https://github.com/robbyrussell/oh-my-zsh.git
$ZSH
||
{
hash
git
>
/dev/null 2>&1
&&
env
git clone https://github.com/robbyrussell/oh-my-zsh.git
$ZSH
||
{
echo
"git not installed"
exit
}
...
...
@@ -43,5 +43,5 @@ echo "\033[0;32m"'\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '"\033[0m
echo
"
\0
33[0;32m"
' /____/ ....is now installed!'
"
\0
33[0m"
echo
"
\n\n
\0
33[0;32mPlease look over the ~/.zshrc file to select plugins, themes, and options.
\0
33[0m"
echo
"
\n\n
\0
33[0;32mp.s. Follow us at http://twitter.com/ohmyzsh.
\0
33[0m"
/usr/bin/
env zsh
env
zsh
.
~/.zshrc
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