Skip to content

Commit 9cd9451

Browse files
authored
Merge pull request #18 from dev-satoshi/terminal
ターミナルの設定を追加
2 parents 337500b + b40d4a0 commit 9cd9451

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

zsh/.zshrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
117
# ASDF
218
export ASDF_DATA_DIR="$HOME/dotfiles/asdf"
319
export PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"

0 commit comments

Comments
 (0)