From eccce3b185285cd8c4a9839325e924083f0e2982 Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Mon, 19 Jan 2026 19:22:35 +0100 Subject: [PATCH] Update dotfiles (2026-01-19 19:22:35) --- .config/zshrc/00-init | 10 +++++++ .config/zshrc/10-aliases | 29 +++++++++++++++++++ .config/zshrc/20-customization | 51 ++++++++++++++++++++++++++++++++++ .config/zshrc/30-autostart | 1 + 4 files changed, 91 insertions(+) create mode 100644 .config/zshrc/00-init create mode 100644 .config/zshrc/10-aliases create mode 100644 .config/zshrc/20-customization create mode 100644 .config/zshrc/30-autostart diff --git a/.config/zshrc/00-init b/.config/zshrc/00-init new file mode 100644 index 0000000..ec69877 --- /dev/null +++ b/.config/zshrc/00-init @@ -0,0 +1,10 @@ +# ----------------------------------------------------- +# INIT +# ----------------------------------------------------- +# ----------------------------------------------------- +# Exports +# ----------------------------------------------------- +export EDITOR=nvim +export PATH="/usr/lib/ccache/bin/:$HOME/tools/lua-language-server/:$PATH:/home/zach/.npm-g/bin" +export PYTHONPATH="/home/zach/.local/lib/python3.12/site-packages" +export ZSH="$HOME/.oh-my-zsh" diff --git a/.config/zshrc/10-aliases b/.config/zshrc/10-aliases new file mode 100644 index 0000000..16a1e29 --- /dev/null +++ b/.config/zshrc/10-aliases @@ -0,0 +1,29 @@ +# ----------------------------------------------------- +# ALIASES +# ----------------------------------------------------- + +# ----------------------------------------------------- +# General +# ----------------------------------------------------- +alias clear='clear && fastfetch' +alias c='clear' +alias cp='cpv' +alias v='nvim' +alias vim='$EDITOR' +alias reboot="hyprshutdown --post-cmd 'systemctl reboot'" + +# ----------------------------------------------------- +# Vencord Installer +# ----------------------------------------------------- +vencord() { + zsh -c "$(curl -sS https://raw.githubusercontent.com/Vendicated/VencordInstaller/main/install.sh)" +} + +# ----------------------------------------------------- +# Custom +# ----------------------------------------------------- +alias p='python3' + + +alias dot='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' +alias dotfiles='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' diff --git a/.config/zshrc/20-customization b/.config/zshrc/20-customization new file mode 100644 index 0000000..e8eace5 --- /dev/null +++ b/.config/zshrc/20-customization @@ -0,0 +1,51 @@ +# ----------------------------------------------------- +# CUSTOMIZATION +# ----------------------------------------------------- + +# ----------------------------------------------------- +# oh-myzsh plugins +# ----------------------------------------------------- +plugins=( + git + sudo + web-search + archlinux + zsh-autosuggestions + zsh-syntax-highlighting + fast-syntax-highlighting + copyfile + copybuffer + dirhistory + command-not-found + conda-env + cp + copypath + extract + tldr + universalarchive +) + +# Set-up oh-my-zsh +source $ZSH/oh-my-zsh.sh + +# ----------------------------------------------------- +# Set-up FZF key bindings (CTRL R for fuzzy history finder) +# ----------------------------------------------------- +source <(fzf --zsh) + +# zsh history +HISTFILE=~/.zsh_history +HISTSIZE=10000 +SAVEHIST=10000 +setopt appendhistory + +# ----------------------------------------------------- +# oh-my-posh prompt +# ----------------------------------------------------- +# Custom Theme +eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/.microverse.omp.json)" + +# Precmd to set cursor to beam +precmd() { + echo -ne "\e[6 q" +} diff --git a/.config/zshrc/30-autostart b/.config/zshrc/30-autostart new file mode 100644 index 0000000..215b1e7 --- /dev/null +++ b/.config/zshrc/30-autostart @@ -0,0 +1 @@ +fastfetch