mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Fixed an edge case for grep
Users may have an option set for grep to use color. This was inserting escape characters in "/usr/bin/zsh"
This commit is contained in:
parent
0532860c61
commit
ca826a388a
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ mv -f ~/.zshrc-omztemp ~/.zshrc
|
|||
TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)')
|
||||
if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then
|
||||
echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
|
||||
chsh -s $(grep /zsh$ /etc/shells | tail -1)
|
||||
chsh -s $(grep --color=never /zsh$ /etc/shells | tail -1)
|
||||
fi
|
||||
unset TEST_CURRENT_SHELL
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue