Files
rice-flakes/modules/core/zsh/.zshrc
T
2026-07-28 21:47:06 -05:00

45 lines
954 B
Bash

HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=10000
setopt autocd extendedglob nomatch notify
unsetopt beep
bindkey -v
zstyle :compinstall filename '/home/poslop/.zshrc'
autoload -Uz compinit
compinit
alias gc='git commit'
alias gp='git push'
alias gs='git status'
alias hermes='docker exec -it -u hermes hermes-agent /data/current-package/bin/hermes'
alias hermes-age='cd /etc/rice-flakes/modules/hermes/secrets && sudo EDITOR=nvim agenix -e hermes-env.age -i /etc/ssh/ssh_host_ed25519_key'
ga() {
if [[ -z "$1" ]]; then
git add -u
else
git add "$1"
fi
}
rerice() {
local flake_dir="/etc/rice-flakes"
local host="$(hostname -s)"
local OPTIND=1
while getopts ":h:" opt; do
case $opt in
h) host="$OPTARG" ;;
:) echo "Option -$OPTARG requires an argument." >&2; return 1 ;;
\?) echo "Unknown option: -$OPTARG" >&2; return 1 ;;
esac
done
sudo nixos-rebuild switch --flake "${flake_dir}#${host}"
}