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
dfbafe6d
Commit
dfbafe6d
authored
Aug 04, 2012
by
Probably Not
Committed by
Robby Russell
Dec 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing conflict in install scripts
parent
d19e01b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
install.sh
tools/install.sh
+1
-2
uninstall.sh
tools/uninstall.sh
+13
-5
No files found.
tools/install.sh
View file @
dfbafe6d
...
...
@@ -14,8 +14,7 @@ echo "\033[0;34mLooking for an existing zsh config...\033[0m"
if
[
-f
~/.zshrc
]
||
[
-h
~/.zshrc
]
then
echo
"
\0
33[0;33mFound ~/.zshrc.
\0
33[0m
\0
33[0;32mBacking up to ~/.zshrc.pre-oh-my-zsh
\0
33[0m"
;
cp
~/.zshrc ~/.zshrc.pre-oh-my-zsh
;
rm
~/.zshrc
;
mv
~/.zshrc ~/.zshrc.pre-oh-my-zsh
;
fi
echo
"
\0
33[0;34mUsing the Oh My Zsh template file and adding it to ~/.zshrc
\0
33[0m"
...
...
tools/uninstall.sh
View file @
dfbafe6d
...
...
@@ -4,12 +4,20 @@ then
rm
-rf
~/.oh-my-zsh
fi
echo
"Looking for
an existing
zsh config..."
echo
"Looking for
original
zsh config..."
if
[
-f
~/.zshrc.pre-oh-my-zsh
]
||
[
-h
~/.zshrc.pre-oh-my-zsh
]
then
echo
"Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh"
;
rm
~/.zshrc
;
cp
~/.zshrc.pre-oh-my-zsh ~/.zshrc
;
echo
"Found ~/.zshrc.pre-oh-my-zsh -- Restoring to ~/.zshrc"
;
if
[
-f
~/.zshrc
]
||
[
-h
~/.zshrc
]
then
ZSHRC_SAVE
=
".zshrc.omz-uninstalled-
`
date
+%Y%m%d%H%M%S
`
"
;
echo
"Found ~/.zshrc -- Renaming to ~/
${
ZSHRC_SAVE
}
"
;
mv
~/.zshrc ~/
${
ZSHRC_SAVE
}
;
fi
mv
~/.zshrc.pre-oh-my-zsh ~/.zshrc
;
source
~/.zshrc
;
else
echo
"Switching back to bash"
...
...
@@ -17,4 +25,4 @@ else
source
/etc/profile
fi
echo
"Thanks for trying out Oh My Zsh. It's been uninstalled."
\ No newline at end of file
echo
"Thanks for trying out Oh My Zsh. It's been uninstalled."
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