Last active
November 30, 2022 18:06
-
-
Save twocolors/146e64d6530c8c6daa3199250e98cfb4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/superbrothers/dotfiles/blob/master/zshrc | |
# https://gist.github.com/tz4678/f72009ee78c4d2517c097f2483c55b9d | |
### Zinit ### | |
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then | |
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f" | |
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit" | |
command git clone https://github.com/zdharma-continuum/zinit.git "$HOME/.local/share/zinit/zinit.git" && \ | |
print -P "%F{33} %F{34}Installation successful.%f%b" || \ | |
print -P "%F{160} The clone has failed.%f%b" | |
fi | |
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh" | |
zinit wait lucid for \ | |
atinit"ZINIT[COMPINIT_OPTS]=-C; zicompinit; zicdreplay" \ | |
zdharma-continuum/fast-syntax-highlighting \ | |
blockf \ | |
zsh-users/zsh-completions \ | |
atload"!_zsh_autosuggest_start" \ | |
zsh-users/zsh-autosuggestions | |
# zsh-autosuggestions | |
export ZSH_AUTOSUGGEST_STRATEGY=("history") | |
export ZSH_AUTOSUGGEST_MANUAL_REBIND=1 | |
export ZSH_AUTOSUGGEST_USE_ASYNC=1 | |
export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20 | |
### Zinit ### | |
### Prompt ### | |
autoload -U colors && colors | |
### Prompt ### | |
### Alias ### | |
alias ..='cd ..' | |
alias ll='ls -lthaF --color' #alias ll='ls -ltahGF' | |
### Alias ### | |
### Export ### | |
export LC_ALL="en_US.UTF-8" | |
export LANG="en_US.UTF-8" | |
### Export ### | |
### History ### | |
HISTFILE="$HOME/.zsh_history" | |
HISTSIZE=1000000 | |
SAVEHIST=1000000 | |
setopt append_history | |
setopt extended_history | |
setopt hist_expire_dups_first | |
setopt hist_ignore_dups | |
setopt hist_ignore_space | |
setopt hist_verify | |
setopt hist_no_store | |
setopt hist_reduce_blanks | |
setopt inc_append_history | |
setopt auto_pushd | |
setopt pushd_ignore_dups | |
### History ### | |
### Completions ### | |
autoload bashcompinit && bashcompinit | |
zmodload -i zsh/complist | |
unsetopt menu_complete | |
unsetopt flowcontrol | |
setopt auto_menu | |
setopt complete_in_word | |
setopt always_to_end | |
setopt list_packed | |
setopt nolistbeep | |
setopt list_packed | |
### Completions ### | |
### Misc ### | |
### Misc ### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment