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

Powerline don't work with my /etc/zsh/zshrc #2215

Open
PowaBanga opened this issue Aug 10, 2022 · 1 comment
Open

Powerline don't work with my /etc/zsh/zshrc #2215

PowaBanga opened this issue Aug 10, 2022 · 1 comment

Comments

@PowaBanga
Copy link

PowaBanga commented Aug 10, 2022

hi everybody,

maybe it is because I am new to use this plugin, but when i add this lines in my zshrc,

. /usr/share/powerline/bindings/zsh/powerline.zsh```
 the plugin do not work.
But, if i launch this one directly in terminal,
```. /usr/share/powerline/bindings/zsh/powerline.zsh``` 
it will work...

```# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=5000
SAVEHIST=1000
unsetopt beep
# End of lines configured by zsh-newuser-install
source '/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh'
source '/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh'
#-------------------------------------------------------------------------------
# Oh-My-Zsh
#-------------------------------------------------------------------------------
powerline-daemon -q
. /usr/share/powerline/bindings/zsh/powerline.zsh

ZSH='/usr/share/oh-my-zsh'
#ZSH_THEME='alanpeabody'
ZSH_CACHE_DIR="$HOME/.zsh_cache"
DISABLE_AUTO_UPDATE='true'
DISABLE_LS_COLORS='false'
ENABLE_CORRECTION="true"

plugins=(
   #'zsh-autosuggestions'
    'docker'
    'docker-compose'
    'docker-machine'
    'colored-man-pages'
    'colorize'
    'dirhistory'
    'kubectl'
    'microk8s'
    'minikube'
    'screen'
)

source "$ZSH/oh-my-zsh.sh"
source "/usr/share/doc/find-the-command/ftc.zsh"
source "/usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh"  #!FIXME il a pas l'air de marcher...

source "/opt/oh-my-git/prompt.sh"
omg_is_a_git_repo_symbol='❤'
omg_has_untracked_files_symbol='∿'
omg_has_adds_symbol='+'
omg_has_deletions_symbol='-'
omg_has_cached_deletions_symbol='💢'
omg_has_modifications_symbol='✎'
omg_has_cached_modifications_symbol='☲'
omg_ready_to_commit_symbol='→'
omg_is_on_a_tag_symbol='⌫'


# PS1="%B%F{037}%n%{%}%F{021}@%F{36}%m%F{021} %F{037}%1~%F{021}]$%B "

alias ix="curl -sF 'f:1=<-' ix.io "

alias atr="/home/powabanga/Documents/trucs/scripts/jenkins/AddAurPackageToRepo.sh"
alias ssh-keys-list="echo Authorized keys: ; grep -rne '.*' $HOME/.ssh --include=authorized_keys|tr ':' ' ' | cut -d' ' --field=2,3,5 | column -t ; echo -e '\nPublic keys:' ; grep -rne '.*' $HOME/.ssh --include='*.pub'|tr ':' ' ' | cut -d' ' --field=1,3,5| sed 's|.*\.ssh/||g' | column -t"

alias diff='diff --color=auto'
alias grep='grep --color=auto'
alias ip='ip -color=auto'
alias dmesg='dmesg --color=always'
alias ls='ls --color=auto'
export LESS=-R
export LESS_TERMCAP_mb=$'\E[1;31m'     # begin blink
export LESS_TERMCAP_md=$'\E[1;36m'     # begin bold
export LESS_TERMCAP_me=$'\E[0m'        # reset bold/blink
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
export LESS_TERMCAP_se=$'\E[0m'        # reset reverse video
export LESS_TERMCAP_us=$'\E[1;32m'     # begin underline
export LESS_TERMCAP_ue=$'\E[0m'        # reset underline

Does anybody can help me to see what is wrong with this ?

@AbdelrahmanDwedar
Copy link

I guess I have something similar but not sure.
I'm running Fedora on my machine and also running arch on a VM.

on the Fedora side, the file powerline.zsh is in /usr/share/powerline/ directly, but on the arch side, it's in the /usr/share/bindings/powerline/ directory.

I suggest checking the output of ls /usr/share/powerline if it has the powerline.zsh or not.

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

No branches or pull requests

3 participants