mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-11-27 18:13:19 +00:00
feat(zsh): add config
This commit is contained in:
10
home/dot_zprofile
Normal file
10
home/dot_zprofile
Normal file
@@ -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
|
||||||
70
home/dot_zshrc
Normal file
70
home/dot_zshrc
Normal file
@@ -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"
|
||||||
|
|
||||||
Reference in New Issue
Block a user