mirror of
https://github.com/ivabus/dotfiles
synced 2024-11-22 08:05:07 +03:00
Change .zshrc
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
This commit is contained in:
parent
9f10a53aad
commit
b87dcd1cf3
2 changed files with 28 additions and 2 deletions
|
@ -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 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_FIND_NO_DUPS
|
||||
|
||||
REPORTTIME=3
|
||||
|
||||
autoload -Uz compinit promptinit
|
||||
compinit
|
||||
promptinit
|
||||
zstyle ':completion:*' menu select
|
||||
|
||||
# Source section
|
||||
|
||||
source $HOME/.profile
|
||||
source $ZSH/themes/ivabus.zsh-theme
|
||||
source $ZSH/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
# Alias section
|
||||
|
||||
alias vi="nvim"
|
||||
alias vim="nvim"
|
||||
alias ls="ls --color=always"
|
||||
|
|
0
tools/link_env.sh
Normal file → Executable file
0
tools/link_env.sh
Normal file → Executable file
Loading…
Reference in a new issue