forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzprofile
41 lines (29 loc) · 1.42 KB
/
zprofile
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
32
33
34
35
36
37
38
39
40
41
##################################################################
##################################################################
########## prmopt #############################
##################################################################
##################################################################
# ***************************************************************
# ******************* git **************************
# ***************************************************************
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git svn
# This line obtains information from the vcs.
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
# Enable substitution in the prompt.
setopt prompt_subst
zstyle ':vcs_info:git:*' formats '%b'
# Config for the prompt. PS1 synonym.
PROMPT="%h:%n:%d👉"
#rprompt='${vcs_info_msg_0_}> '
#prompt='%2/ ${vcs_info_msg_0_}> '
RPROMPT='${vcs_info_msg_0_}'
# ***************************************************************
##################################################################
##################################################################
##################################################################
##################################################################
##################################################################
# for zshell, get all the paths from bashrc
[[ -s ~/.bashrc ]] && source ~/.bashrc