cli-productivity-8-shell-aliases-and-functions

Sub-skill of cli-productivity: 8. Shell Aliases and Functions.

5 stars

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

$curl -o ~/.claude/skills/8-shell-aliases-and-functions/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/_archive/operations/devtools/cli-productivity/8-shell-aliases-and-functions/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/8-shell-aliases-and-functions/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How cli-productivity-8-shell-aliases-and-functions Compares

Feature / Agentcli-productivity-8-shell-aliases-and-functionsStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

5
from vamseeachanta/workspace-hub

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

5
from vamseeachanta/workspace-hub

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

5
from vamseeachanta/workspace-hub

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

5
from vamseeachanta/workspace-hub

Turn interactive weekly GTM priorities into agent-executable packets and run productivity-flow reviews that reduce owner orchestration time.

git-advanced-7-git-aliases

5
from vamseeachanta/workspace-hub

Sub-skill of git-advanced: 7. Git Aliases (+1).

cli-productivity-3-ripgrep-rg-fast-search

5
from vamseeachanta/workspace-hub

Sub-skill of cli-productivity: 3. ripgrep (rg) - Fast Search (+1).

cli-productivity-3-interactive-script-template

5
from vamseeachanta/workspace-hub

Sub-skill of cli-productivity: 3. Interactive Script Template.

cli-productivity-1-tool-selection-guidelines

5
from vamseeachanta/workspace-hub

Sub-skill of cli-productivity: 1. Tool Selection Guidelines (+2).

cli-productivity-1-jq-json-processing

5
from vamseeachanta/workspace-hub

Sub-skill of cli-productivity: 1. jq - JSON Processing (+1).

cli-productivity-1-complete-shell-configuration

5
from vamseeachanta/workspace-hub

Sub-skill of cli-productivity: 1. Complete Shell Configuration (+1).

sql-queries-window-functions

5
from vamseeachanta/workspace-hub

Sub-skill of sql-queries: Window Functions (+4).

obsidian-productivity

5
from vamseeachanta/workspace-hub

Sub-skill of obsidian: Productivity.