dotfiles/dot_zshrc

26 lines
848 B
Text
Raw Normal View History

2023-05-09 15:17:29 +02:00
# 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\\"
2023-02-17 16:41:55 +01:00
}
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)"