From 5dce5eb3b72a3601800a0fad073f8939a13e52ab Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Tue, 14 Jul 2026 19:46:20 +0100 Subject: [PATCH] refactor(zsh): cleanup zshrc file --- .config/discord/settings.json | 16 ---------------- .zshrc | 36 ++++++++++++++++++----------------- 2 files changed, 19 insertions(+), 33 deletions(-) delete mode 100644 .config/discord/settings.json diff --git a/.config/discord/settings.json b/.config/discord/settings.json deleted file mode 100644 index 6602ff9..0000000 --- a/.config/discord/settings.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "offloadAdmControls": true, - "BACKGROUND_COLOR": "#000000", - "enableHardwareAcceleration": true, - "chromiumSwitches": {}, - "asyncVideoInputDeviceInit": false, - "IS_MAXIMIZED": false, - "IS_MINIMIZED": false, - "WINDOW_BOUNDS": { - "x": 1927, - "y": 57, - "width": 1906, - "height": 1016 - }, - "SKIP_HOST_UPDATE": true -} \ No newline at end of file diff --git a/.zshrc b/.zshrc index be05e25..ee3b6e6 100644 --- a/.zshrc +++ b/.zshrc @@ -1,24 +1,26 @@ -# 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. +# INSTANT PROMPT 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 -# Environment for apps -export QT_QPA_PLATFORMTHEME=qt5ct # for Qt5 -export QT_QPA_PLATFORMTHEME=qt6ct # for Qt6 +# PATH +export PATH="$HOME/.local/bin:$HOME/.opencode/bin:$PATH" -alias dotfiles="git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME" - -source ~/powerlevel10k/powerlevel10k.zsh-theme -[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh -source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - -# Path updates -export PATH="$HOME/.local/bin:$PATH" -export PATH="$HOME/.opencode/bin:$PATH" - -# Env Variables +# ENVIRONMENT export EDITOR=nvim export VISUAL=nvim +export QT_QPA_PLATFORMTHEME=qt6ct # Qt6 apps + +# ALIASES +alias dotfiles="git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME" + +# COMPLETION (before plugins that hook into it) +autoload -Uz compinit && compinit + +# PLUGINS +source ~/powerlevel10k/powerlevel10k.zsh-theme +source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh # keep LAST + +# THEME CONFIG (after theme is loaded) +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh