Skip to content

Commit

Permalink
Minor change 0.8
Browse files Browse the repository at this point in the history
- prompt color update for dir path (Reference: https://github.com/erlliam/dotfiles)
  • Loading branch information
maniac-en committed Apr 27, 2021
1 parent 485db3f commit 3d26c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ HISTSIZE=100000
# prompt
function _short_dir() { sed -e "s|$HOME|~|;s|\(\.\?[^/]\)[^/]*/|\1/|g;" <<< "$PWD"; }
function _git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'; }
PS1='$(_short_dir)%F{green}$(_git_branch)%F{red}❯ %F{white}'
PS1='%F{214}$(_short_dir)%F{green}$(_git_branch)%F{red}❯ %F{white}'

# fzf setup
[ -f "$HOME"/.fzf.zsh ] && source "$HOME"/.fzf.zsh
Expand Down

0 comments on commit 3d26c3d

Please sign in to comment.