Change .zshrc

Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
Ivan Bushchik 2023-02-07 14:44:12 +03:00
parent 9f10a53aad
commit b87dcd1cf3
No known key found for this signature in database
GPG key ID: 9F6DDABE11A2674D
2 changed files with 28 additions and 2 deletions

View file

@ -1,14 +1,40 @@
#!/bin/zsh
# Setup function, that resets terminal
autoload -Uz add-zsh-hook
function reset_broken_terminal () {
printf '%b' '\e[0m\e(B\e)0\017\e[?5l\e7\e[0;0r\e8'
}
add-zsh-hook -Uz precmd reset_broken_terminal
export ZSH="$HOME/.dotfiles/zsh" export ZSH="$HOME/.dotfiles/zsh"
export HISTSIZE=10000
export SAVEHIST=10000 # Setup history
HISTFILE="$HOME/.zsh_history"
HISTSIZE=10000
SAVEHIST=10000
bindkey '\e[A' history-search-backward
bindkey '\e[B' history-search-forward
setopt HIST_IGNORE_ALL_DUPS setopt HIST_IGNORE_ALL_DUPS
setopt HIST_FIND_NO_DUPS setopt HIST_FIND_NO_DUPS
REPORTTIME=3 REPORTTIME=3
autoload -Uz compinit promptinit
compinit
promptinit
zstyle ':completion:*' menu select
# Source section
source $HOME/.profile source $HOME/.profile
source $ZSH/themes/ivabus.zsh-theme source $ZSH/themes/ivabus.zsh-theme
source $ZSH/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source $ZSH/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Alias section
alias vi="nvim" alias vi="nvim"
alias vim="nvim" alias vim="nvim"
alias ls="ls --color=always" alias ls="ls --color=always"

0
tools/link_env.sh Normal file → Executable file
View file