diff --git a/modules/core/zsh/.zshrc b/modules/core/zsh/.zshrc index b186f19..854b395 100644 --- a/modules/core/zsh/.zshrc +++ b/modules/core/zsh/.zshrc @@ -11,11 +11,18 @@ zstyle :compinstall filename '/home/poslop/.zshrc' autoload -Uz compinit compinit -alias ga='git add' alias gc='git commit' alias gp='git push' alias gs='git status' +ga() { + if [[ -z "$1" ]]; then + git add -u + else + git add "$1" + fi +} + rerice() { local flake_dir="/etc/rice-flakes" host="${1:-$(hostname -s)}"