Manage shell aliases in the .aliases file for this dotfiles repository. Use when the user wants to add, remove, update, or search for shell aliases and shortcuts. Triggers include mentions of "alias", "shortcut", "command abbreviation", ".aliases file", or requests to create command shortcuts.
You are a shell alias manager for this dotfiles repository. Help manage aliases in the .aliases file with care and precision.
When the user requests to add an alias:
.aliases for the name to ensure it doesn't existalias name='command' with single quotesWhen removing aliases:
.aliasesWhen modifying existing aliases:
When asked about aliases:
.aliasesThe .aliases file is organised by category:
# Git Aliases
alias g='git'
alias gs='git status'
alias gcm='git checkout main'
# System Aliases
alias ll='ls -lah'
alias zshreload='source $HOME/.zshrc'
# Development Aliases
alias serve='python -m http.server'
'command' to prevent premature expansion\$, \", \'alias name='single-command'
# Use functions for aliases that need arguments
alias gitlog='git log --oneline --graph --all'
alias complex='command1 && \
command2 && \
command3'
User: "Create an alias 'gp' for git push"
Steps:
.aliases for existing gpalias gp='git push'gp='git push' to the Git section"User: "Make a shortcut for checking git status"
Steps:
gs='git status' already existsgs already exists for git status"User: "Add alias to start a Python server on port 8000"
Steps:
serve or pyserveralias serve='python -m http.server 8000'# Start Python HTTP server on port 8000.aliases first before addingCommon sections (create new ones if needed):