Commit 5cdc395d authored by Maxime Bombar's avatar Maxime Bombar

delete trailing whitespaces

parent 6154a166
......@@ -181,7 +181,7 @@ if [[ "$TERM" == dumb ]] ; then
else
# these are the same, just with a lot of colours:
zstyle ':vcs_info:*' actionformats "%F{magenta}(%F{no}%s%F{magenta})%F{yellow}-%F{magenta}[%F{green}%r%F{yellow}/%F{green}%b%F{yellow}|%F{red}%a%F{magenta}]%F{no}" \
"(%s)-[%r/%b|%a]"
"(%s)-[%r/%b|%a]"
zstyle ':vcs_info:*' formats "%F{magenta}(%F{no}%s%F{magenta})%F{yellow}-%F{magenta}[%F{green}%r%F{yellow}/%F{green}%b%F{magenta}]%F{no}" \
"(%s)-[%r/%b]"
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat "%b%F{red}:%F{yellow}%r"
......@@ -243,11 +243,11 @@ precmd () {
fi
RPROMPT="%(?..:()"
# Generates battery info
batcolor
RPROMPT="${BATTERY} ${RPROMPT}"
# adjust title of xterm
# see http://www.faqs.org/docs/Linux-mini/Xterm-Title.html
[[ ${NOTITLE} -gt 0 ]] && return 0
......@@ -260,7 +260,7 @@ precmd () {
local prompt_line_1a_width=${#${(S%%)prompt_line_1a//(\%([KF1]|)\{*\}|\%[Bbkf])}}
local prompt_line_1b_width=${#${(S%%)prompt_line_1b//(\%([KF1]|)\{*\}|\%[Bbkf])}}
local prompt_vcs_width=${#${(S%%)VCS_INFO_message_0_//(\%([KF1]|)\{*\}|\%[Bbkf])}}
local prompt_padding_size=$(( COLUMNS - prompt_line_1a_width - prompt_line_1b_width - prompt_vcs_width - 2 ))
# Try to fit in long path and user@host, and vcs_info
......@@ -270,7 +270,7 @@ precmd () {
prompt_line_1="$prompt_line_1a$prompt_padding$prompt_hyphen$VCS_INFO_message_0_%F{$prompt_color1}$prompt_hyphen$prompt_line_1b"
else
prompt_padding_size=$(( COLUMNS - prompt_line_1a_width - prompt_vcs_width - 2 ))
# Didn't fit; try to fit in long path and vcs_info
if (( prompt_padding_size > 0 )); then
local prompt_padding
......@@ -284,14 +284,14 @@ precmd () {
eval "prompt_padding=\${(l:${prompt_padding_size}::${prompt_hyphen}:)_empty_zz}"
prompt_line_1="$prompt_line_1a$prompt_padding"
else
# Still didn't fit; truncate
# Still didn't fit; truncate
local prompt_pwd_size=$(( COLUMNS - 5 ))
prompt_line_1="$prompt_tbox$prompt_l_paren%B%F{$prompt_color2}%$prompt_pwd_size<...<%~%<<$prompt_r_paren%b%F{$prompt_color1}$prompt_hyphen"
fi
fi
fi
# And, makes it good
PS1="$prompt_line_1$prompt_newline$prompt_line_2%B%F{red}${EXITCODE}%b%F{$prompt_color1}$prompt_hyphen%B%F{white}$prompt_char %b%f%k"
PS2="$prompt_line_2$prompt_bbox_to_mbox%B%F{white}%_> %b%f%k"
......@@ -328,7 +328,7 @@ preexec () {
# if [[ -z "$debian_chroot" ]] && [[ -r /etc/debian_chroot ]] ; then
# debian_chroot=$(cat /etc/debian_chroot)
# fi
#
#
# # don't use colors on dumb terminals (like emacs):
# if [[ "$TERM" == dumb ]] ; then
# PROMPT="${debian_chroot:+($debian_chroot)}%n@%m %# "
......@@ -581,3 +581,9 @@ done
xunfunction
# }}}
## Repo NK18
export NOTEREPO="/var/www/note-kfet"
## Opam Config Env
eval `opam config env`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment