|
@ -21,7 +21,17 @@ export EDITOR=nvim |
|
|
export GIT_EDITOR=nvim |
|
|
export GIT_EDITOR=nvim |
|
|
export PATH="${HOME}/.local/bin/:${HOME}/go/bin:${HOME}/.cargo/bin:${PATH}" |
|
|
export PATH="${HOME}/.local/bin/:${HOME}/go/bin:${HOME}/.cargo/bin:${PATH}" |
|
|
|
|
|
|
|
|
PROMPT="%{$fg[blue]%}%1~ %{$fg[green]%}>%{$reset_color%} " |
|
|
|
|
|
|
|
|
# Enable substitution in the prompt. |
|
|
|
|
|
setopt prompt_subst |
|
|
|
|
|
|
|
|
|
|
|
function git_branch_name() { |
|
|
|
|
|
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}') |
|
|
|
|
|
if [[ $branch != "" ]]; then |
|
|
|
|
|
echo "- ${branch} " |
|
|
|
|
|
fi |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
PROMPT='%{$fg[blue]%}%1~ %{$fg[magenta]%}$(git_branch_name)%{$fg[green]%}>%{$reset_color%} ' |
|
|
|
|
|
|
|
|
# Set some options if running on mac |
|
|
# Set some options if running on mac |
|
|
if [[ $(uname) == 'Darwin' ]]; then |
|
|
if [[ $(uname) == 'Darwin' ]]; then |
|
|