Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 948 forks source link

Powerline9k not working properly on terminator #1256

Open AnthonyIp opened 5 years ago

AnthonyIp commented 5 years ago

Describe Your Issue

What is happening?

Most issues are best explained with a screenshot. Please share one if you can!

I have this: image

I should have this (this is from VS code terminal) image

Have you tried to debug or fix it?

I have no clue of why I have this issue ...It used to work....

Environment Information

This information will help us understand your configuration.

Issues with Fonts & Icons

I'm using V1rgul's theme.

Comments

I noticed since the last update of OMZ, I had 2 plugin which was not found anymore (z, colored-man) and it ask me to install auto-jump. I didn't have this issue before. To fix this, I removed them :)

Here is my .zshrc

# Path to your oh-my-zsh installation.                                                                                                                                                                                                       
export ZSH="/home/anthony/.oh-my-zsh"                                                                                                                                                                                                        

PATH=$PATH:/home/anthony/bin                                                                                                                                                                                                                 
export PATH="$HOME/.config/composer/vendor/bin:$PATH"
export TERM="xterm-256color"                                                                                                                                                                                                                 
export VISUAL="emacs -nw"                                                                                                                                                                                                                    

# 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="robbyrussell"                                                                                                                                                                                                                    

ZSH_THEME="powerlevel9k/powerlevel9k"                                                                                                                                                                                                        

POWERLEVEL9K_MODE="awesome-fontconfig"
POWERLEVEL9K_FOLDER_ICON=""                                                                                                                                                                                                                 
#POWERLEVEL9K_HOME_SUB_ICON="$(print_icon "HOME_ICON")"                                                                                                                                                                                      
#POWERLEVEL9K_DIR_PATH_SEPARATOR=" $(print_icon "LEFT_SUBSEGMENT_SEPARATOR") "                                                                                                                                                               

POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0                                                                                                                                                                                              

POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER=true                                                                                                                                                                                                   

POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND='black'                                                                                                                                                                                              
POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND='178'                                                                                                                                                                                                
POWERLEVEL9K_NVM_BACKGROUND="238"                                                                                                                                                                                                            
POWERLEVEL9K_NVM_FOREGROUND="green"                                                                                                                                                                                                          
POWERLEVEL9K_CONTEXT_DEFAULT_FOREGROUND="blue"                                                                                                                                                                                               
POWERLEVEL9K_DIR_WRITABLE_FORBIDDEN_FOREGROUND="015"                                                                                                                                                                                         

POWERLEVEL9K_TIME_BACKGROUND='255'                                                                                                                                                                                                           
#POWERLEVEL9K_COMMAND_TIME_FOREGROUND='gray'                                                                                                                                                                                                 
POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND='245'                                                                                                                                                                                         
POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND='black'                                                                                                                                                                                       

POWERLEVEL9K_TIME_FORMAT="%D{%H:%M}"                                                                                                                                                                                                         
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator context dir dir_writable vcs)                                                                                                                                                              
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(ram status background_jobs)                                                                                                                                                                              
POWERLEVEL9K_SHOW_CHANGESET=true                                                                                                                                                                                                             
POWERLEVEL9K_PROMPT_ON_NEWLINE=true                                                                                                                                                                                                          

HYPHEN_INSENSITIVE="true"                                                                                                                                                                                                                    
COMPLETION_WAITING_DOTS="true"                                                                                                                                                                                                               
# /!\ do not use with zsh-autosuggestions                                                                                                                                                                                                    

plugins=(tig gitfast colorize command-not-found cp dirhistory sudo zsh-syntax-highlighting)                                                                                                                                                  
# /!\ zsh-syntax-highlighting and then zsh-autosuggestions must be at the end                                                                                                                                                                

source $ZSH/oh-my-zsh.sh                                                                                                                                                                                                                     

ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)                                                                                                                                                                                    
ZSH_HIGHLIGHT_STYLES[cursor]='bold'                                                                                                                                                                                                          

ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold'                                                                                                                                                                                                  
ZSH_HIGHLIGHT_STYLES[suffix-alias]='fg=green,bold'                                                                                                                                                                                           
ZSH_HIGHLIGHT_STYLES[builtin]='fg=green,bold'                                                                                                                                                                                                
ZSH_HIGHLIGHT_STYLES[function]='fg=green,bold'                                                                                                                                                                                               
ZSH_HIGHLIGHT_STYLES[command]='fg=green,bold'                                                                                                                                                                                                
ZSH_HIGHLIGHT_STYLES[precommand]='fg=green,bold'                                                                                                                                                                                             
ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=green,bold'
rule () {                                                                                                                                                                                                                                    
        print -Pn '%F{blue}'                                                                                                                                                                                                                 
        local columns=$(tput cols)                                                                                                                                                                                                           
        for ((i=1; i<=columns; i++)); do                                                                                                                                                                                                     
           printf "\u2588"                                                                                                                                                                                                                   
        done                                                                                                                                                                                                                                 
        print -P '%f'                                                                                                                                                                                                                        
}                                                                                                                                                                                                                                            

function _my_clear() {                                                                                                                                                                                                                       
        echo                                                                                                                                                                                                                                 
        rule                                                                                                                                                                                                                                 
        zle clear-screen                                                                                                                                                                                                                     
}                                                                                                                                                                                                                                            
zle -N _my_clear                                                                                                                                                                                                                             
bindkey '^l' _my_clear                                                                                                                                                                                                                       

# Ctrl-O opens zsh at the current location, and on exit, cd into ranger's last location.                                                                                                                                                     
ranger-cd() {                                                                                                                                                                                                                                
        tempfile=$(mktemp)                                                                                                                                                                                                                   
        ranger --choosedir="$tempfile" "${@:-$(pwd)}" < $TTY                                                                                                                                                                                 
        test -f "$tempfile" &&                                                                                                                                                                                                               
        if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then                                                                                                                                                                           
        cd -- "$(cat "$tempfile")"                                                                                                                                                                                                           
        fi                                                                                                                                                                                                                                   
        rm -f -- "$tempfile"                                                                                                                                                                                                                 
        # hacky way of transferring over previous command and updating the screen                                                                                                                                                            
        VISUAL=true zle edit-command-line                                                                                                                                                                                                    
}                                                                                                                                                                                                                                            
zle -N ranger-cd                                                                                                                                                                                                                             
bindkey '^o' ranger-cd

plugins=(                                                                                                                                                                                                                                    
    git                                                                                                                                                                                                                                      
    zsh-autosuggestions                                                                                                                                                                                                                      
    zsh-syntax-highlighting                                                                                                                                                                                                                  
#    fast-syntax-highlighting                                                                                                                                                                                                                
)                                                                                                                                                                                                                                            

source $ZSH/oh-my-zsh.sh

Thanks in advance

geocine commented 4 years ago

I don't know what is causing this but just to add some comments, this is working fine on my terminator being used in KDE Neon

OO7kartik commented 4 years ago

same issue

OO7kartik commented 4 years ago

installing nerd-fonts did the thing for me, the current font you are using does not support special symbols

OO7kartik commented 4 years ago

git_help here, this helped me, just download a font. (I've downloaded hack)

right-click terminator -> preferences -> profiles -> general -> uncheck "Use the system fixed width font" and change it to the one you've downloaded.

this2