~kiril/dotfiles

ref: d0c0f47e040f362c4c85c7042a64a34d13a020f8 dotfiles/zsh/config -rw-r--r-- 629 bytes
d0c0f47eKiril Vladimiroff systemd: replace offlineimap with mbsync 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/zsh

autoload -U colors
colors
setopt prompt_subst

PROMPT='$(exit_code_prompt) '
RPROMPT='%{$fg_bold[%F{34}]%}$(virtualenv_prompt_info)%{$reset_color%} %{$fg_bold[%F{250}]%}%n@%M:%F{240}%/ %F{240}$(vcprompt -f "[%n:%b%m]")%{$reset_color%} [%*%f]'
PROMPT_EOL_MARK=' ↴'
WORDCHARS=${WORDCHARS//[&=\/;\!#%\{]}

setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt APPEND_HISTORY
setopt EXTENDED_HISTORY
HISTFILE=~/.zsh_history
SAVEHIST=10000
HISTSIZE=10000

bindkey -e

# Bring back the Ctrl-x-e from bash
autoload edit-command-line
zle -N edit-command-line
bindkey '^[[3~' delete-char
bindkey '^Xe'   edit-command-line