~kiril/dotfiles

ref: 8ba51741d9b58d239e7b258c2ac9cc255ac97759 dotfiles/zsh/config -rw-r--r-- 579 bytes
8ba51741Kiril Vladimiroff zsh: Move user@host to left-prompt 1 year, 20 days 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='%{$fg_bold[grey]%}%n@%M%{$reset_color%}$(exit_code_prompt) '
RPROMPT='%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