summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc12
1 files changed, 5 insertions, 7 deletions
diff --git a/.zshrc b/.zshrc
index 1d167ee..735e5bc 100644
--- a/.zshrc
+++ b/.zshrc
@@ -33,6 +33,7 @@ alias mysql="mysql --pager"
# Suffix aliases
alias -s pdf="zathura"
+alias -s xls="libreoffice"
setopt notify
setopt PROMPT_SUBST # Allow for functions in the prompt
@@ -52,17 +53,14 @@ add-zsh-hook precmd precmd_maybe_festival
add-zsh-hook precmd vcs_info
add-zsh-hook chpwd chpwd_update_git_vars
-zstyle ':vcs_info:*' actionformats '%F{2}(%f%s %r %b%F{2})%f %a
- %S'
+zstyle ':vcs_info:*' actionformats '%B%F{5}%a%f%%b %s:%r-%b %S'
zstyle ':vcs_info:*' enable bzr git hg svn
-zstyle ':vcs_info:*' formats '%F{2}(%f%s %r %b%F{2})%f
- %S'
-zstyle ':vcs_info:*' nvcsformats '
- %~'
+zstyle ':vcs_info:*' formats '%s:%r-%b %S'
+zstyle ':vcs_info:*' nvcsformats '%~'
zstyle ':vcs_info:bzr:*' branchformat '%b'
# Set the prompt.
-PROMPT='%F{1}(%F{2}(%f%m %l%F{2})%f ${vcs_info_msg_0_}%F{1})%f %# '
+PROMPT='%B%(?.%F{2}+.%F{1}-) %F{6}%m%b%f ${vcs_info_msg_0_} %# '
# Set terminal name to current running application
case $TERM in