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 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

View File

@ -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}["