mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Remove Strange, Unnecessary Semicolons
This commit is contained in:
parent
45b4594189
commit
3e6d6df4fe
2 changed files with 7 additions and 7 deletions
|
|
@ -16,9 +16,9 @@ echo "${BLUE}Cloning Oh My Zsh...${RESET}"
|
||||||
echo "${BLUE}Looking for an existing zsh config...${RESET}"
|
echo "${BLUE}Looking for an existing zsh config...${RESET}"
|
||||||
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
|
if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
|
||||||
then
|
then
|
||||||
echo "${YELLOW}Found ~/.zshrc.${RESET} ${GREEN}Backing up to ~/.zshrc.pre-oh-my-zsh${RESET}";
|
echo "${YELLOW}Found ~/.zshrc.${RESET} ${GREEN}Backing up to ~/.zshrc.pre-oh-my-zsh${RESET}"
|
||||||
cp ~/.zshrc ~/.zshrc.pre-oh-my-zsh;
|
cp ~/.zshrc ~/.zshrc.pre-oh-my-zsh
|
||||||
rm ~/.zshrc;
|
rm ~/.zshrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${BLUE}Using the Oh My Zsh template file and adding it to ~/.zshrc${RESET}"
|
echo "${BLUE}Using the Oh My Zsh template file and adding it to ~/.zshrc${RESET}"
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,10 @@ fi
|
||||||
echo "${BLUE}Looking for an existing zsh config...${RESET}"
|
echo "${BLUE}Looking for an existing zsh config...${RESET}"
|
||||||
if [ -f ~/.zshrc.pre-oh-my-zsh ] || [ -h ~/.zshrc.pre-oh-my-zsh ]
|
if [ -f ~/.zshrc.pre-oh-my-zsh ] || [ -h ~/.zshrc.pre-oh-my-zsh ]
|
||||||
then
|
then
|
||||||
echo "${YELLOW}Found ~/.zshrc.pre-oh-my-zsh.${RESET} ${GREEN}Restoring to ~/.zshrc${RESET}";
|
echo "${YELLOW}Found ~/.zshrc.pre-oh-my-zsh.${RESET} ${GREEN}Restoring to ~/.zshrc${RESET}"
|
||||||
rm ~/.zshrc;
|
rm ~/.zshrc
|
||||||
cp ~/.zshrc.pre-oh-my-zsh ~/.zshrc;
|
cp ~/.zshrc.pre-oh-my-zsh ~/.zshrc
|
||||||
source ~/.zshrc;
|
source ~/.zshrc
|
||||||
else
|
else
|
||||||
echo "${BLUE}Switching back to bash${RESET}"
|
echo "${BLUE}Switching back to bash${RESET}"
|
||||||
chsh -s /bin/bash
|
chsh -s /bin/bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue