-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
31 lines (24 loc) · 963 Bytes
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
. ~/dotfiles/bash_zsh_common
function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Add wisely, as too many plugins slow down shell startup.
plugins=(zsh-syntax-highlighting)
# ZSH_THEME="awesomepanda"
# Path to your oh-my-zsh installation.
export ZSH="${HOME}/dotfiles/oh-my-zsh"
source $ZSH/oh-my-zsh.sh
fpath+=$HOME/.zsh/pure
autoload -U promptinit; promptinit
# zstyle :prompt:pure:path color white
zstyle :prompt:pure:path color '#57c7ff'
prompt pure
unset LESS
export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"
# modify the prompt of awesomepanda theme to display RDEV name
# if (( ${+RDEV_NAME} )); then
# export PS1='${ret_status}%{$fg_bold[green]%} ${RDEV_NAME} %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}$(svn_prompt_info)%{$reset_color%}'
# fi