2024-09-01 10:40:29 +00:00
|
|
|
# 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"
|
|
|
|
|
|
|
|
# Plugins
|
|
|
|
zinit light zsh-users/zsh-autosuggestions
|
|
|
|
zinit light zdharma-continuum/fast-syntax-highlighting
|
|
|
|
|
|
|
|
# Oh My Posh
|
|
|
|
#########################################################
|
2024-09-01 14:00:17 +00:00
|
|
|
export PATH=$PATH:"$HOME/.local/bin"
|
2024-09-01 10:40:29 +00:00
|
|
|
OMP_EXECUTABLE="${XDG_DATA_HOME:-${HOME}/.local}/bin/oh-my-posh"
|
2024-09-01 14:00:17 +00:00
|
|
|
[ ! -f $OMP_EXECUTABLE ] && curl -s https://ohmyposh.dev/install.sh | bash -s
|
2024-09-01 10:40:29 +00:00
|
|
|
eval "$(oh-my-posh init zsh --config ~/.config/omp.toml)"
|
|
|
|
|
|
|
|
# Basic ZSH
|
|
|
|
#########################################################
|
|
|
|
|
|
|
|
# History
|
|
|
|
HISTFILE=~/.histfile
|
|
|
|
HISTSIZE=10000
|
|
|
|
SAVEHIST=1000
|
|
|
|
|
|
|
|
# Disable Bell
|
|
|
|
unsetopt beep
|
|
|
|
|
2024-09-04 04:18:00 +00:00
|
|
|
# Keybinding
|
2024-09-04 04:22:19 +00:00
|
|
|
bindkey '\e[1;5C' forward-word
|
|
|
|
bindkey '\e[1;5D' backward-word
|
2024-09-04 04:18:00 +00:00
|
|
|
|
2024-09-01 14:00:17 +00:00
|
|
|
# Git
|
|
|
|
#########################################################
|
|
|
|
case "$HOSTNAME" in
|
|
|
|
snoweuph-desktop)key=31EDB2BA02AD438859B996654014606F050AEF63;;
|
|
|
|
fedorabook-pro)key=CFB8E8CF1F0BA9FA2A1840CA0021ADF278B2F49B;;
|
|
|
|
esac
|
|
|
|
alias git="git -c user.signingKey='$key'"
|
|
|
|
|
2024-09-01 10:40:29 +00:00
|
|
|
# Application Envs
|
|
|
|
#########################################################
|
|
|
|
|
|
|
|
# NPM
|
|
|
|
export npm_config_cache="$HOME/.cache/npm"
|
|
|
|
export npm_config_prefix="$HOME/.local/share/npm"
|
|
|
|
export npm_config_userconfig="$HOME/.config/npmrc"
|
|
|
|
|
|
|
|
# Volta
|
|
|
|
export VOLTA_HOME="$HOME/.local/share/volta"
|
|
|
|
export PATH="$VOLTA_HOME/bin:$PATH"
|
|
|
|
|
|
|
|
# Go
|
|
|
|
export GOPATH=~/.local/share/go
|
|
|
|
export GOBIN=~/.local/bin/go
|
|
|
|
|
|
|
|
# ROCM
|
|
|
|
export HSA_OVERRIDE_GFX_VERSION=10.3.0 # RX 6650 XT
|
|
|
|
|
|
|
|
# Just
|
|
|
|
export JUST_UNSTABLE=1
|
|
|
|
|
|
|
|
# Aliases
|
|
|
|
#########################################################
|
|
|
|
alias edit-nvim-conf="nvim ~/.config/nvim"
|
2024-09-04 04:18:00 +00:00
|
|
|
alias edit-zsh-conf="nvim ~/.zshrc"
|
2024-09-01 10:40:29 +00:00
|
|
|
alias todo="nvim ~/Documents/Notes/Todo.md"
|
|
|
|
|
|
|
|
alias nano="nvim"
|
|
|
|
alias neofetch="fastfetch"
|