Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing oh-my-zsh after running install.sh #35

Closed
LarryBarker opened this issue Feb 5, 2020 · 2 comments
Closed

Installing oh-my-zsh after running install.sh #35

LarryBarker opened this issue Feb 5, 2020 · 2 comments

Comments

@LarryBarker
Copy link

LarryBarker commented Feb 5, 2020

Hey @driesvints, I never installed oh-my-zsh when running a forked version of your dotfiles. Now I'm trying to customize my terminal a bit and am having issues. I went ahead and installed oh-my-zsh (/Users/larry/.oh-my-zsh does exist). I updated my .zshrc, reloaded my terminal, and am not seeing any changes. My fork is based on an older version of your dotfiles which used zplug (doesn't look like you're using it now).

I searched issues and didn't really find anything that helped much. Here is my .zshrc:

export DOTFILES=$HOME/.dotfiles
export ZPLUG_HOME=/usr/local/opt/zplug

# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh

source $ZPLUG_HOME/init.zsh

# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)

source $ZSH/oh-my-zsh.sh
source $ZSH/oh-my-zsh.sh
zplug 'zplug/zplug', hook-build:'zplug --self-manage'

# Plugins
zplug "~/.dotfiles", from:local

zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "zsh-users/zsh-history-substring-search", defer:3

# Themes
export MNML_INSERT_CHAR="$"
export MNML_PROMPT=(mnml_status mnml_git mnml_keymap)
export MNML_RPROMPT=('mnml_cwd 20')

zplug subnixr/minimal, use:minimal.zsh, from:github, as:theme

zplug load

and a screen shot of my terminal:
image

Do you have any thoughts on what I can do to get oh-my-zsh working? When I initially installed it appeared to load oh-my-zsh but after quitting terminal it will not load again.

Any feedback is greatly appreciated, and thanks for sharing!

UPDATE
Another case of asking too soon.. I just simply copied your current .zshrc and all is well. One thing I am looking for is highlighting commands that are valid vs invalid. I don't remember how I did this before, whether or not it was part of your dotfiles when I forked.

For example, typing a valid command would turn the command green, while invalid commands would be red. This also worked for my aliases.

Do you remember implementing something similar?

Thanks again!

@LarryBarker LarryBarker changed the title Custom terminal Installing oh-my-zsh after running install.sh Feb 5, 2020
@KevinBatdorf
Copy link

KevinBatdorf commented Feb 5, 2020

One thing I am looking for is highlighting commands that are valid vs invalid.

@LArbearrr You have it in your .zshrc file but it's not installed properly (or maybe just reload?).

See here: https://github.com/zsh-users/zsh-syntax-highlighting

Edit: You can install it via your Brewfile

brew 'zsh-syntax-highlighting'

@driesvints
Copy link
Owner

Hey @LArbearrr. I unfortunately don't know too much about the Zplug thing anymore.. it's been a while since I removed it again.

I unfortunately don't know about the highlighting command thing, sorry...

I think @KevinBatdorf maybe has the solution for you. Going to close this one but definitely feel free to discuss further here 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants