-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
75 lines (57 loc) · 2.17 KB
/
.zshrc
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#export GIT_PROMPT_EXECUTABLE="haskell"
#source ~/src/zsh-git-prompt/zshrc.sh
export KEYTIMEOUT=1
export EDITOR=nvim
export PAGER=less
bindkey -v
ttyctl -f
setopt completealiases
setopt HIST_IGNORE_ALL_DUPS
setopt SHARE_HISTORY
HISTFILE=~/.histfile
HISTSIZE=1000000
SAVEHIST=100000
autoload -U colors && colors
zstyle ':completion:*' menu select
autoload -Uz compinit && compinit
autoload -U promptinit && promptinit
zstyle ':completion:*' rehash true
autoload -Uz edit-command-line
zle -N edit-command-line
bindkey -M vicmd 'v' edit-command-line
PROMPT="%{$fg[yellow]%}[%{$reset_color%}%{$fg[blue]%}%D{%a %d-%m-%Y}%{$reset_color%} %{$fg[red]%}%D{%H:%M:%S}%{$reset_color%}%{$fg[yellow]%}]%{$reset_color%} %{$fg[yellow]%}[%{$reset_color%}%{$fg[green]%}%n@%m%{$reset_color%}:%{$fg[blue]%}%~%{$reset_color%}%{$fg[yellow]%}]%{$reset_color%}"$'\n'"%# "
RPROMPT=""
source ~/.aliases
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
function zle-line-init zle-keymap-select {
VIM_PROMPT_NORMAL="%{$fg_bold[red]%}[ -- NORMAL -- ]%{$reset_color%}"
VIM_PROMPT_INSERT="%{$fg_bold[yellow]%}[ -- INSERT -- ]%{$reset_color%}"
RPS1="${${KEYMAP/vicmd/$VIM_PROMPT_NORMAL}/(main|viins)/$VIM_PROMPT_INSERT}"
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
noop () { }
zle -N noop
bindkey -M vicmd '\e' noop
bindkey -M vicmd '/' history-incremental-search-backward
bindkey -M viins '^R' history-incremental-search-backward
#[[ ! $TERM =~ screen ]] && [ -z $TMUX ] && tmux
export PATH=$PATH:~/go/bin
case $TERM in
st*)
preexec () {print -Pn "\e]0;%n@%m: %~ $3\a"}
esac
eval $(dircolors ~/.dircolors)
alias vi="nvim"
alias vim="nvim"
alias :e="nvim"
[ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ] && source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /etc/profile.d/vte.sh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export QT_QPA_PLATFORMTHEME="qt5ct"
export GOPATH=~/go
#command -v vg >/dev/null 2>&1 && eval "$(vg eval --shell zsh)"
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh
[ -f /opt/miniconda3/etc/profile.d/conda.sh ] && source /opt/miniconda3/etc/profile.d/conda.sh