Dotfiles/.zshrc

99 lines
2.6 KiB
Bash
Raw Normal View History

# Oh My Posh
#########################################################
export PATH=$PATH:"$HOME/.local/bin"
OMP_EXECUTABLE="${XDG_DATA_HOME:-${HOME}/.local}/bin/oh-my-posh"
[ ! -f $OMP_EXECUTABLE ] && curl -s https://ohmyposh.dev/install.sh | bash -s
eval "$(oh-my-posh init zsh --config ~/.config/omp.toml)"
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"
# Core Plugins
zinit snippet OMZP::command-not-found
zinit snippet OMZP::colored-man-pages
2024-09-01 10:40:29 +00:00
zinit light zsh-users/zsh-autosuggestions
zinit light zdharma-continuum/fast-syntax-highlighting
autoload -Uz compinit
compinit
2024-09-01 10:40:29 +00:00
# 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
WORDCHARS="_-" # Define These Characters as Part of "Words"
2024-09-04 04:18:00 +00:00
# Application Envs
2024-09-01 14:00:17 +00:00
#########################################################
2024-10-18 16:05:03 +00:00
# GPG
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
# Git
zinit snippet OMZP::git
# Containerization
zinit snippet OMZP::docker-compose
zinit snippet OMZP::podman
zinit snippet OMZP::toolbox
2024-09-01 10:40:29 +00:00
# NPM
export npm_config_cache="$HOME/.cache/npm"
export npm_config_prefix="$HOME/.local/share/npm"
export npm_config_userconfig="$HOME/.config/npmrc"
2024-10-11 22:48:18 +00:00
export npm_config_loglevel="verbose"
export npm_config_log="$HOME/.local/share/npm/logs"
2024-09-01 10:40:29 +00:00
# Volta
export VOLTA_HOME="$HOME/.local/share/volta"
2024-10-18 19:34:22 +00:00
[ ! -d $VOLTA_HOME ] && curl https://get.volta.sh | bash -s -- --skip-setup
2024-09-01 10:40:29 +00:00
# Go
export GOPATH=~/.local/share/go
2024-09-17 18:53:58 +00:00
export GOBIN=$GOPATH/bin
2024-09-01 10:40:29 +00:00
# Rust
export CARGO_HOME=$HOME/.local/share/cargo
export RUSTUP_HOME=$HOME/.local/share/rustup
zinit snippet OMZP::rust
# Php
zinit snippet OMZP::composer
zinit snippet OMZP::symfony6
2024-09-01 10:40:29 +00:00
# ROCM
export HSA_OVERRIDE_GFX_VERSION=10.3.0 # RX 6650 XT
# Just
export JUST_UNSTABLE=1
2024-09-17 18:53:58 +00:00
# PATH
export PATH=$PATH:$VOLTA_HOME/bin:$GOBIN:$CARGO_HOME/bin
2024-09-17 18:53:58 +00:00
2024-09-01 10:40:29 +00:00
# Aliases
#########################################################
alias edit-nvim-conf="nvim ~/.config/nvim"
2024-09-04 04:18:00 +00:00
alias edit-zsh-conf="nvim ~/.zshrc"
2024-11-23 16:56:09 +00:00
alias todo="nvim ~/Dokumente/Notes/Todo.md"
alias hist="eval \$(cat $HISTFILE | fzf)"
2024-09-01 10:40:29 +00:00
alias nano="nvim"
alias neofetch="fastfetch"