电力线在非sudo模式下不起作用(Fedora 31)

时间:2020-02-25 07:43:09

标签: linux bash fedora powerline

我已经安装了电力线。如果我在终端中进入sudo模式,它将起作用。但是默认终端打开时没有此扩展名。也许我对.bashrc的编辑不正确?[在此处输入图片描述] [1]

[[1]:https://i.stack.imgur.com/pwllm.png][1]

我的.bashrc:

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

#if [ -f /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh ]; then  

#    source /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh

#fi


if [ -f `which powerline-daemon` ]; then

  powerline-daemon -q

  POWERLINE_BASH_CONTINUATION=1

  POWERLINE_BASH_SELECT=1
  . /usr/local/lib/python3.7/site-packages/powerline/bindings/bash/powerline.sh
#  . /usr/share/powerline/bash/powerline.sh

fi

# Source global definitions
#if [ -f /etc/bashrc ]; then
#       . /etc/bashrc
#fi

0 个答案:

没有答案
相关问题