n1kk / p9k-config

My config for powerlevel9k theme
4 stars 5 forks source link

User some glyphs and next line not showing #1

Open BigDuke6nc opened 5 years ago

BigDuke6nc commented 5 years ago

Hello, I have downloaded your repo and ran the install script on my mac. Fonts are set on iTerm and even did the next branch but my command line looks nothing like yours. I still see username@machine name. Then the glyph of the home folder. On the right hand side I see the check mark a number and a glyph with a circular arrow, the time with a clock glyph. Do you have a copy of your .zshrc file? Mine looks a little "plain" after I ran your script.

Thanks!

n1kk commented 5 years ago

Hi, maybe this code is not the latest version. I will check my repo at home if I forgot to push the latest.

My .zshrc is pretty much the standard but in the end it sources

Can you post your config so I could see what went wrong?

You probably can fix this by reinstalling oh-my-zsh to have a default .zshrc and then set theme manually, since you already have fonts installed.

All you need is to set the theme ZSH_THEME="powerlevel9k/powerlevel9k" and then source or copy-paste code from style-bullet.sh or other style file into your config.

BigDuke6nc commented 5 years ago

Thanks for the quick response. For some reason it was not picking up the source on the bottom. I reinstalled oh-my-zsh. I am getting further. Now I have this error:

__p9k_build_left_prompt:16: command not found: prompt_user
__p9k_build_left_prompt:16: command not found: prompt_dir_writable
__p9k_build_right_prompt:15: command not found: prompt_command_execution_time
__p9k_build_right_prompt:15: command not found: prompt_disk_usage
__p9k_build_right_prompt:15: command not found: prompt_ram

Here is my config. Sorry for the boldness on the commented out lines.

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

P9K_IGNORE_VAR_WARNING=true

# Path to your oh-my-zsh installation.
export ZSH="/Users/pmcghee2/.oh-my-zsh"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_MODE="nerdfont-complete"

# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"

# Uncomment the following line to automatically update without prompting.
# DISABLE_UPDATE_PROMPT="true"

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS=true

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# 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

# User configuration

# export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
#   export EDITOR='vim'
# else
#   export EDITOR='mvim'
# fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
source $HOME/Documents/styles/style-bullet.sh
n1kk commented 5 years ago

Hi, no problems, I fixed it. Comments on github are actually treated as markdown. You can do nice formatting with it.

It seems like your powerlevel9k theme is not the latest version. It's weird since you said that you switched to next branch.

What if you try to remove powerlevel9k and clone next branch directly?

git clone -b next https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

Make sure to double check paths :)

BigDuke6nc commented 5 years ago

Thanks again. No go. I removed powerlevel9k and ran the command you pasted. Paths are correct. Still get the same errors. I guess I could try installing it via homebrew and source the path to it from there.

n1kk commented 5 years ago

Hm, that is very weird, those errors are p9k failing to find the code for those segments that are used in the config. I never had to install anything separate to make them work.

I will check it once I get home.

n1kk commented 5 years ago

So strange, the segments weren't changed or removed in next branch, they are sill there. https://github.com/bhilburn/powerlevel9k/tree/next/segments/command_execution_time Can't figure how it fails to find them.

BigDuke6nc commented 5 years ago

After installing p9k through homebrew I get different results. Seems to have fixed some things and messed up some on the command line and now some warnings.

image