We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 337500b + b40d4a0 commit 9cd9451Copy full SHA for 9cd9451
1 file changed
zsh/.zshrc
@@ -1,3 +1,19 @@
1
+# Terminalの文字色をカスタマイズ
2
+PROMPT=\
3
+'
4
+[%B%F{red}%n@%m%f%b<`git config user.name`>:%F{green}%~%f]%F{cyan}$vcs_info_msg_0_%f
5
+%F{yellow}$%f'
6
+
7
+# TerminalにBranch表示
8
+autoload -Uz vcs_info
9
+setopt prompt_subst
10
+zstyle ':vcs_info:git:*' check-for-changes true
11
+zstyle ':vcs_info:git:*' stagedstr "%F{magenta}!"
12
+zstyle ':vcs_info:git:*' unstagedstr "%F{yellow}+"
13
+zstyle ':vcs_info:*' formats "%F{cyan}%c%u[%b]%f"
14
+zstyle ':vcs_info:*' actionformats '[%b|%a]'
15
+precmd () { vcs_info }
16
17
# ASDF
18
export ASDF_DATA_DIR="$HOME/dotfiles/asdf"
19
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
0 commit comments