feat: migrate from Oh-My-Zsh to ZInit
This commit is contained in:
48
.zshrc
48
.zshrc
@@ -2,39 +2,47 @@
|
||||
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
|
||||
|
||||
# Path to your Oh My Zsh installation.
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
# export ZSH="$HOME/.oh-my-zsh"
|
||||
|
||||
ZSH_THEME="robbyrussell"
|
||||
# ZSH_THEME="robbyrussell"
|
||||
|
||||
zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
||||
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
||||
|
||||
plugins=(
|
||||
git
|
||||
zsh-syntax-highlighting
|
||||
# zsh-autosuggestions
|
||||
zsh-autocomplete
|
||||
colored-man-pages
|
||||
sudo
|
||||
)
|
||||
# plugins=(
|
||||
# git
|
||||
# zsh-syntax-highlighting
|
||||
# # zsh-autosuggestions
|
||||
# zsh-autocomplete
|
||||
# colored-man-pages
|
||||
# sudo
|
||||
# )
|
||||
|
||||
zstyle ':autocomplete:*' delay 0.1 # seconds (float)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
# source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# ZInit
|
||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||
[ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)"
|
||||
[ ! -d $ZINIT_HOME/.git ] && git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||
source "${ZINIT_HOME}/zinit.zsh"
|
||||
|
||||
# fzf
|
||||
source <(fzf --zsh)
|
||||
|
||||
zinit snippet OMZ::lib/git.zsh
|
||||
|
||||
[ -f ~/zsh/aliases.sh ] && source ~/zsh/aliases.sh
|
||||
[ -f ~/zsh/functions.sh ] && source ~/zsh/functions.sh
|
||||
[ -f ~/zsh/prompt.sh ] && source ~/zsh/prompt.sh
|
||||
[ -f ~/zsh/completion.sh ] && source ~/zsh/completion.sh
|
||||
|
||||
# Custom theme
|
||||
PROMPT=""
|
||||
|
||||
# Path
|
||||
PROMPT+="%{$fg[cyan]%}%c%{$reset_color%} "
|
||||
PATH+=":/home/anton/Rider/bin"
|
||||
|
||||
# Arrow
|
||||
PROMPT+="%(?:%{$fg_bold[green]%}%1{➜%} :%{$fg[red]%}%? %{$fg_bold[red]%}%1{➜%} )"
|
||||
zinit ice wait'!0'
|
||||
|
||||
# Git
|
||||
PROMPT+='$(git_prompt_info)'
|
||||
[ -f ~/zsh/plugins.sh ] && source ~/zsh/plugins.sh
|
||||
|
||||
# source ${ZINIT_HOME}/../plugins/marlonrichert---zsh-autocomplete/zsh-autocomplete.plugin.zsh
|
||||
# zstyle ':autocomplete:*' delay 0.1 # seconds (float)
|
||||
|
||||
Reference in New Issue
Block a user