Created
March 25, 2024 11:48
-
-
Save scillidan/b49eabe3a90e7e7499b5155af7f36480 to your computer and use it in GitHub Desktop.
This file contains 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
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 "$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" | |
autoload -Uz _zinit | |
(( ${+_comps} )) && _comps[zinit]=_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" | |
g | |
export ZSH=$HOME/.oh-my-zsh | |
export PATH=$HOME/.cargo/bin:$HOME/.bin:$HOME/.local/bin:$HOME/_bin:$PATH | |
export CARGO_TARGET_DIR=$HOME/.cargo/tmp | |
ZSH_THEME="robbyrussell" | |
plugins=(git) | |
source $ZSH/oh-my-zsh.sh | |
zinit light zsh-users/zsh-autosuggestions | |
zinit light zsh-users/zsh-completions | |
zinit light zdharma-continuum/fast-syntax-highlighting | |
zinit light Aloxaf/fzf-tab | |
zinit light agkozak/zsh-z | |
zstyle ':completion:*:git-checkout:*' sort false | |
zstyle ':completion:*:descriptions' format '[%d]' | |
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} | |
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'exa -1 --color=always $realpath' | |
zstyle ':fzf-tab:*' switch-group ',' '.' | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
eval "$(atuin init zsh --disable-up-arrow)" | |
bindkey '^ ' expand-or-complete-prefix | |
bindkey '^r' _atuin_search_widget |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment