How do I reset and put the zshrc file back to default?

zsh itself does not have a default user configuration. So the default ~/.zshrc is actually no ~/.zshrc. But as you tagged the question with oh-my-zsh I would assume that you want to restore the default oh-my-zsh configuration. For this it should be sufficient to copy templates/zshrc.zsh-template from your oh-my-zsh installation path, usually ~/.oh-my-zsh: cp ~/.oh-my-zsh/templates/zshrc.zsh-template … Read more

Upgrading Oh My Zsh gives me ‘not a git repository’ error

Looks like your git repo was removed from oh-my-zsh? You can re-add the remote and update to the latest version of Zsh by running: cd ~/.oh-my-zsh git init # you’ve already done this step, so you can skip git remote add origin https://github.com/ohmyzsh/ohmyzsh.git git fetch git reset –hard origin/master After that, restart your terminal instance … Read more

Add newline to Oh My ZSH Theme

I was actually searching for the same answer. But my needs was a little more specific since I only wanted to add a newline in the agnoster theme, the one I’m using now. In my research, I find a lot of forked themes that already do it, but I thought that this was an overkill … Read more

How do you determine which theme you are on when ZSH_THEME=”random”

According to oh-my-zsh.sh L81-87: if [ “$ZSH_THEME” = “random” ]; then themes=($ZSH/themes/*zsh-theme) N=${#themes[@]} ((N=(RANDOM%N)+1)) RANDOM_THEME=${themes[$N]} source “$RANDOM_THEME” echo “[oh-my-zsh] Random theme ‘$RANDOM_THEME’ loaded…” Therefore you should be able to print the path to the random theme with print $RANDOM_THEME

Remnant characters when tab completing with ZSH

It seems I had issues with locale configuration and non UTF8 configuration In my case the fix was: export LC_ALL=”en_US.UTF-8″ and keep it permanent adding the line to .zshrc: echo “export LC_ALL=en_US.UTF-8” >> .zshrc More info in Ubuntu doc https://help.ubuntu.com/community/Locale

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)