25 lines
848 B
Text
25 lines
848 B
Text
# needed for history and autosuggestions
|
|
export HISTFILE=~/.zhistory
|
|
export HISTSIZE=10000000
|
|
export SAVEHIST=10000000
|
|
|
|
# make midnight commander colorful
|
|
export TERM=xterm-256color
|
|
# by default backspace deletes whole word
|
|
bindkey "^H" backward-delete-char
|
|
# up/down should search in history not step
|
|
bindkey '\e[A' history-beginning-search-backward
|
|
bindkey '\e[B' history-beginning-search-forward
|
|
# colored prompt
|
|
autoload -U colors && colors
|
|
PS1="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%/ %{$reset_color%}% "
|
|
# called when executing a command
|
|
function preexec {
|
|
print -Pn "\e]0;${(q)1}\e\\"
|
|
}
|
|
|
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
source /usr/share/fzf/key-bindings.zsh
|
|
|
|
eval "$(starship init zsh)"
|