them updated
This commit is contained in:
parent
a8c008a6ca
commit
bd87936113
2
my.zsh
2
my.zsh
|
@ -67,7 +67,7 @@ cdpath=($project_path $cdpath)
|
||||||
source $current_path/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source $current_path/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
|
||||||
# Load autosuggestions
|
# Load autosuggestions
|
||||||
#source $current_path/zsh-autosuggestions/autosuggestions.zsh
|
source $current_path/zsh-autosuggestions/autosuggestions.zsh
|
||||||
|
|
||||||
|
|
||||||
# Enable autosuggestions automatically
|
# Enable autosuggestions automatically
|
||||||
|
|
|
@ -20,16 +20,16 @@ function spaces() {
|
||||||
if [ ${#git} != 0 ]; then
|
if [ ${#git} != 0 ]; then
|
||||||
local clean=$(parse_git_dirty)
|
local clean=$(parse_git_dirty)
|
||||||
if [ ${#clean} != 0 ]; then
|
if [ ${#clean} != 0 ]; then
|
||||||
(( git = ${#git} - 17 - ${#clean} + 1 ))
|
(( git = ${#git} - 20 - ${#clean} + 1 ))
|
||||||
else
|
else
|
||||||
(( git = ${#git} - 17 ))
|
(( git = ${#git} - 20 ))
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
git=0
|
git=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local termwidth
|
local termwidth
|
||||||
(( termwidth = ${COLUMNS} - 5 - ${#$(get_pwd)} - ${git} ))
|
(( termwidth = ${COLUMNS} - 7 - ${#$(get_pwd)} - ${git} ))
|
||||||
|
|
||||||
local spacing=" "
|
local spacing=" "
|
||||||
for i in {1..$termwidth}; do
|
for i in {1..$termwidth}; do
|
||||||
|
@ -50,8 +50,8 @@ function path_icon () {
|
||||||
}
|
}
|
||||||
|
|
||||||
PROMPT='
|
PROMPT='
|
||||||
$(path_icon) %F{003}%~%F{008}$(spaces) $(my_git_prompt_info)
|
$(user_sign) $(path_icon) %F{003}%~%F{008}$(spaces) $(my_git_prompt_info)
|
||||||
$(user_sign) %f'
|
%f'
|
||||||
|
|
||||||
# git settings
|
# git settings
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%F{002}["
|
ZSH_THEME_GIT_PROMPT_PREFIX="%F{002}["
|
||||||
|
|
Loading…
Reference in New Issue