From 2d44c01586345d82fbe05341298e0ab673dff7cf Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Sat, 8 Nov 2025 10:30:52 -0500 Subject: [PATCH] feat(zsh): add config --- home/dot_zprofile | 10 +++++++ home/dot_zshrc | 70 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 home/dot_zprofile create mode 100644 home/dot_zshrc diff --git a/home/dot_zprofile b/home/dot_zprofile new file mode 100644 index 0000000..8de2da9 --- /dev/null +++ b/home/dot_zprofile @@ -0,0 +1,10 @@ +sh ~/.config/scripts/setup.sh -nr + +# Load user settings from config file. +. ~/.config/settings.conf + +if [[ $computer == 'w530' ]]; then + if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then + exec startx + fi +fi diff --git a/home/dot_zshrc b/home/dot_zshrc new file mode 100644 index 0000000..afd33ee --- /dev/null +++ b/home/dot_zshrc @@ -0,0 +1,70 @@ +autoload -Uz vcs_info +precmd() { vcs_info } +zstyle ':vcs_info:git:*' formats '%b ' +setopt PROMPT_SUBST +PROMPT='%F{white}%n% @%m%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ ' + +setopt appendhistory autocd extendedglob nomatch notify +unsetopt beep +bindkey -e +zstyle :compinstall filename '~/.zshrc' + +autoload -Uz compinit +compinit + +HISTFILE=~/.zsh_history +HISTSIZE=99999999 +SAVEHIST=99999999 + +source "$HOME/.config/settings.conf" + +# Text Editor +alias emacs='emacs -nw' +alias e='emacs -nw' + +# Search +alias g='grep -Irn' + +# Other +alias i='sudo dnf install' +alias d='sudo dnf' +alias u='sh ~/bin/update.sh' +alias dot='cd ~/dotfiles' +alias h='cd ~/git/cacolglazier.com/ && hugo server' +# Git +alias c='git commit -m' +alias a='git add' +alias ga='git add -A' +alias gu='git add -u' +alias s='git status' +alias p='git pull' +alias gp='git push' +alias gd='git diff $(git rev-parse --abbrev-ref HEAD)' +alias stash='git stash create; git stash push' +alias pop='git stash pop' + +# AquaAI +export AQUAAI_PATH='~/bin/aquaai.sh' +alias q=${AQUAAI_PATH} +alias qb="${AQUAAI_PATH} --bash" +alias qc="${AQUAAI_PATH} --cli" +alias qg="${AQUAAI_PATH} --git" +alias qr="${AQUAAI_PATH} --code-review" +alias qa="${AQUAAI_PATH} --home-assistant" +export AQUAAI_DEFAULT_MODEL='hf.co/unsloth/Qwen3-4B-Instruct-2507-GGUF:Q4_K_M' +export AQUAAI_CODING_MODEL='hf.co/unsloth/Qwen3-4B-Instruct-2507-GGUF:Q4_K_M' +export AQUAAI_RICH_FORMAT_MODE=true +export AQUAAI_KEY + +export TERM=xterm +export EDITOR='emacs -nw' + +# Daisy build toolkit +GCC_PATH=~/dev/gcc-arm-none-eabi-10-2020-q4-major/bin +export PATH=$GCC_PATH:$PATH + +# AM auto complete +autoload bashcompinit +bashcompinit +source "/home/aqua/.local/share/bash-completion/completions/am" +