them updated

This commit is contained in:
Sameer Rahmani 2016-04-23 16:54:36 +04:30
parent a8c008a6ca
commit bd87936113
2 changed files with 6 additions and 6 deletions

2
my.zsh
View File

@ -67,7 +67,7 @@ cdpath=($project_path $cdpath)
source $current_path/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Load autosuggestions
#source $current_path/zsh-autosuggestions/autosuggestions.zsh
source $current_path/zsh-autosuggestions/autosuggestions.zsh
# Enable autosuggestions automatically

View File

@ -20,16 +20,16 @@ function spaces() {
if [ ${#git} != 0 ]; then
local clean=$(parse_git_dirty)
if [ ${#clean} != 0 ]; then
(( git = ${#git} - 17 - ${#clean} + 1 ))
(( git = ${#git} - 20 - ${#clean} + 1 ))
else
(( git = ${#git} - 17 ))
(( git = ${#git} - 20 ))
fi
else
git=0
fi
local termwidth
(( termwidth = ${COLUMNS} - 5 - ${#$(get_pwd)} - ${git} ))
(( termwidth = ${COLUMNS} - 7 - ${#$(get_pwd)} - ${git} ))
local spacing=" "
for i in {1..$termwidth}; do
@ -50,8 +50,8 @@ function path_icon () {
}
PROMPT='
$(path_icon) %F{003}%~%F{008}$(spaces) $(my_git_prompt_info)
$(user_sign) %f'
$(user_sign) $(path_icon) %F{003}%~%F{008}$(spaces) $(my_git_prompt_info)
%f'
# git settings
ZSH_THEME_GIT_PROMPT_PREFIX="%F{002}["