Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Maxime Bombar
Config_Files
Commits
5cdc395d
Commit
5cdc395d
authored
Aug 18, 2017
by
Maxime Bombar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete trailing whitespaces
parent
6154a166
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
.zshrc
.zshrc
+15
-9
No files found.
.zshrc
View file @
5cdc395d
...
...
@@ -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
`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment