After installing oh my zsh and customizing it a little, iTerm2 looks awesome but the default terminal on MacOS looks like crap because it can't load the plugins and I don't want it to. So how can I only use oh-my-zsh on Iterm2?
How to only use oh my zsh in Iterm2, and not all other terminals also?
apple.stackexchange.com/questions/191780/… I think here is the same question. –
Whereabouts
Sounds difficult to do so. Perhaps you can specify your Terminal to open with bash rather than zsh. Then iterm2 will open with zsh (and oh-my-zsh) and terminal will open with bash.
isnt it possible to use zsh on terminal too but without ohmyzsh configurations ? –
Cretan
@Cretan you can always run some shell manually. If you wanna use zsh without ohmyzsh, remove
export ZSH=$HOME/.oh-my-zsh
from you .zshrc file and run it manully in 'shells open with command' –
Rakehell Move all the oh-my-zsh
configuration from .zshrc
to a different file .zshrc-oh-my-zsh
(if you have some commands that you have added to .zshrc
you can leave them in .zshrc
and move only the oh-my-zsh
portion to the new file)
And in the original .zshrc
file, I had an if check to source that file only if the terminal is iTerm.app
if [[ -n "$TERM_PROGRAM" && "$TERM_PROGRAM" == "iTerm.app" ]]; then
source ~/.zshrc-oh-my-zsh
fi
No reason to use
-eq
with [[ ... ]]
; just use =
or ==
. –
Rampart © 2022 - 2025 — McMap. All rights reserved.