3
3

More than 5 years have passed since last update.

旧vim-powerlineフォントを使っている人のためのagnosterパッチ

Posted at

現在のagnoster.zsh-themeは新版のpowerlineフォントを対象としているので、
(旧版のフォントを使いたい人にとっては)文字化けしてまともに表示されない。
そこで以下の簡単なパッチ。

agnoster.zsh-theme.patch

*** .oh-my-zsh/themes/agnoster.zsh-theme    2014-07-27 17:00:22.137778000 +0900
--- agnoster.zsh-theme  2014-07-27 17:04:07.984434873 +0900
***************
*** 26,32 ****
  # A few utility functions to make it easy and re-usable to draw segmented prompts

  CURRENT_BG='NONE'
! SEGMENT_SEPARATOR=''

  # Begin a segment
  # Takes two arguments, background and foreground. Both can be omitted,
--- 26,32 ----
  # A few utility functions to make it easy and re-usable to draw segmented prompts

  CURRENT_BG='NONE'
! SEGMENT_SEPARATOR='⮀'

  # Begin a segment
  # Takes two arguments, background and foreground. Both can be omitted,
***************
*** 100,106 ****
      zstyle ':vcs_info:*' formats ' %u%c'
      zstyle ':vcs_info:*' actionformats ' %u%c'
      vcs_info
!     echo -n "${ref/refs\/heads\// }${vcs_info_msg_0_%% }${mode}"
    fi
  }

--- 100,106 ----
      zstyle ':vcs_info:*' formats ' %u%c'
      zstyle ':vcs_info:*' actionformats ' %u%c'
      vcs_info
!     echo -n "${ref/refs\/heads\//⭠}${vcs_info_msg_0_%% }${mode}"
    fi
  }

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3