cli-productivity-8-shell-aliases-and-functions
Sub-skill of cli-productivity: 8. Shell Aliases and Functions.
Best use case
cli-productivity-8-shell-aliases-and-functions is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of cli-productivity: 8. Shell Aliases and Functions.
Teams using cli-productivity-8-shell-aliases-and-functions should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/8-shell-aliases-and-functions/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How cli-productivity-8-shell-aliases-and-functions Compares
| Feature / Agent | cli-productivity-8-shell-aliases-and-functions | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of cli-productivity: 8. Shell Aliases and Functions.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 8. Shell Aliases and Functions
## 8. Shell Aliases and Functions
**Essential Aliases:**
```bash
# Navigation
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias ~='cd ~'
alias -- -='cd -'
# Safety
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
# Shortcuts
alias c='clear'
alias h='history'
alias q='exit'
alias v='vim'
alias e='${EDITOR:-vim}'
# Git shortcuts
alias g='git'
alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias gp='git push'
alias gl='git log --oneline -20'
alias gd='git diff'
alias gb='git branch'
alias gco='git checkout'
# Docker shortcuts
alias d='docker'
alias dc='docker compose'
alias dps='docker ps'
alias dimg='docker images'
alias dlog='docker logs -f'
# Common directories
alias proj='cd ~/projects'
alias docs='cd ~/Documents'
alias dl='cd ~/Downloads'
```
**Utility Functions:**
```bash
# Create directory and cd into it
mkcd() {
mkdir -p "$1" && cd "$1"
}
# Extract any archive
extract() {
if [[ -f "$1" ]]; then
case "$1" in
*.tar.bz2) tar xjf "$1" ;;
*.tar.gz) tar xzf "$1" ;;
*.tar.xz) tar xJf "$1" ;;
*.bz2) bunzip2 "$1" ;;
*.rar) unrar x "$1" ;;
*.gz) gunzip "$1" ;;
*.tar) tar xf "$1" ;;
*.tbz2) tar xjf "$1" ;;
*.tgz) tar xzf "$1" ;;
*.zip) unzip "$1" ;;
*.Z) uncompress "$1" ;;
*.7z) 7z x "$1" ;;
*) echo "'$1' cannot be extracted" ;;
esac
else
echo "'$1' is not a valid file"
fi
}
# Get public IP
myip() {
curl -s https://ifconfig.me
}
# Weather
weather() {
curl -s "wttr.in/${1:-}"
}
# Quick note
note() {
local notes_dir="${NOTES_DIR:-$HOME/notes}"
local date=$(date +%Y-%m-%d)
mkdir -p "$notes_dir"
${EDITOR:-vim} "$notes_dir/$date.md"
}
# Serve current directory
serve() {
local port="${1:-8000}"
python -m http.server "$port"
}
# Show disk usage for directory
duh() {
du -h "${1:-.}" | sort -h | tail -20
}
# Find process by name
psg() {
ps aux | grep -v grep | grep -i "$1"
}
```Related Skills
github-actions-trigger-and-shell-gotchas
Prevent false verification gaps in GitHub Actions by checking push path filters, shell compatibility, and shared CI environment failures before concluding a workflow fix worked or failed.
shell-tdd
Shell-based TDD test harness patterns — pass/fail counters, common assertions, set -e gotchas, and exit code conventions for bash test scripts
shell-script-hardening-patterns
Harden Bash automation scripts with TDD-first static and behavioral checks, safe Python invocation via uv, locking, persistent state, and review-driven correction loops.
weekly-gtm-productivity-steering
Turn interactive weekly GTM priorities into agent-executable packets and run productivity-flow reviews that reduce owner orchestration time.
git-advanced-7-git-aliases
Sub-skill of git-advanced: 7. Git Aliases (+1).
cli-productivity-3-ripgrep-rg-fast-search
Sub-skill of cli-productivity: 3. ripgrep (rg) - Fast Search (+1).
cli-productivity-3-interactive-script-template
Sub-skill of cli-productivity: 3. Interactive Script Template.
cli-productivity-1-tool-selection-guidelines
Sub-skill of cli-productivity: 1. Tool Selection Guidelines (+2).
cli-productivity-1-jq-json-processing
Sub-skill of cli-productivity: 1. jq - JSON Processing (+1).
cli-productivity-1-complete-shell-configuration
Sub-skill of cli-productivity: 1. Complete Shell Configuration (+1).
sql-queries-window-functions
Sub-skill of sql-queries: Window Functions (+4).
obsidian-productivity
Sub-skill of obsidian: Productivity.