105 lines
3.7 KiB
Bash
105 lines
3.7 KiB
Bash
#neofetch
|
|
nitch
|
|
#potatoe
|
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
|
# Initialization code that may require console input (password prompts, [y/n]
|
|
# confirmations, etc.) must go above this block; everything else may go below.
|
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
fi
|
|
|
|
export XDG_DATA_HOME=$HOME/.local/share
|
|
export XDG_CONFIG_HOME=$HOME/.config
|
|
export XDG_STATE_HOME=$HOME/.localse/state
|
|
export XDG_CACHE_HOME=$HOME/.cache
|
|
|
|
export KUBECONFIG=$(find ~/.kube/configs -type f -printf '%p:')
|
|
export USE_GKE_GCLOUD_AUTH_PLUGIN=True
|
|
export EDITOR=nvim
|
|
export LIBVA_DRIVER_NAME=nvidia
|
|
|
|
export LESSHISTFILE=$XDG_STATE_HOME/less/history
|
|
export NIMBLE_DIR=$XDG_DATA_HOME/nimble
|
|
export CARGO_HOME=$XDG_DATA_HOME/cargo
|
|
export GOPATH=$XDG_DATA_HOME/go
|
|
export GOBIN=$GOPATH/bin
|
|
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
|
|
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
|
|
|
|
PATH="$PATH:/home/abs3nt/.local/bin"
|
|
PATH="$PATH:/home/abs3nt/.local/lib/python3.9/site-packages"
|
|
PATH="$PATH:/home/abs3nt/.cargo/bin"
|
|
PATH="$PATH:/home/abs3nt/go/bin"
|
|
PATH="$PATH:/usr/lib/node_modules/npm"
|
|
PATH="$PATH:/usr/local/opt/openjdk/libexec/openjdk.jdk/Contents/Home/bin"
|
|
PATH="$PATH:/home/abs3nt/.nimble/bin"
|
|
|
|
# ZSH SETTINGS
|
|
HISTFILE=$XDG_STATE_HOME/zsh/history
|
|
HISTSIZE=10000
|
|
SAVEHIST=10000
|
|
setopt appendhistory
|
|
unsetopt beep
|
|
|
|
### Added by Zinit's installer
|
|
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
|
|
### END
|
|
__git_files () {
|
|
_wanted files expl 'local files' _files
|
|
}
|
|
|
|
# PLUGINS
|
|
zinit ice lucid wait'0'
|
|
zinit light joshskidmore/zsh-fzf-history-search
|
|
zinit ice depth=1; zinit light romkatv/powerlevel10k
|
|
zinit light zsh-users/zsh-autosuggestions
|
|
zinit light zsh-users/zsh-history-substring-search
|
|
zinit light z-shell/F-Sy-H
|
|
zinit load z-shell/H-S-MW
|
|
|
|
# append completions to fpath
|
|
fpath=(/bedrock/share/zsh/completion /bedrock/cross/zsh-completion $fpath)
|
|
# initialise completions with ZSH's compinit
|
|
autoload -Uz compinit && compinit
|
|
|
|
compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION"
|
|
|
|
# ALIASES
|
|
|
|
for f in $XDG_CONFIG_HOME/zsh/aliases/*; do source $f; done
|
|
|
|
# KEYBINDING
|
|
bindkey '^[[A' history-substring-search-up
|
|
bindkey '^[[B' history-substring-search-down
|
|
|
|
# PLUGIN SETTINGS
|
|
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND=false
|
|
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND=false
|
|
HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=true
|
|
|
|
export ZSH_FZF_HISTORY_SEARCH_REMOVE_DUPLICATES=1
|
|
export ZSH_FZF_HISTORY_SEARCH_DATES_IN_SEARCH=0
|
|
export ZSH_FZF_HISTORY_SEARCH_EVENT_NUMBERS=0
|
|
|
|
eval "$(dircolors)"
|
|
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
[[ ! -f ${ZDOTDIR:-~}/.p10k.zsh ]] || source ${ZDOTDIR:-~}/.p10k.zsh
|
|
|
|
# The next line updates PATH for the Google Cloud SDK.
|
|
if [ -f '/home/abs3nt/Dev/google-cloud-sdk/path.zsh.inc' ]; then . '/home/abs3nt/Dev/google-cloud-sdk/path.zsh.inc'; fi
|
|
|
|
# The next line enables shell command completion for gcloud.
|
|
if [ -f '/home/abs3nt/Dev/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/abs3nt/Dev/google-cloud-sdk/completion.zsh.inc'; fi
|