PTENES
Skip to content
MODULE 1.6

🛠️ Your Personal Workflow

Aliases, wrapper scripts, VS Code, tmux, dotfiles, and the ultimate setup for using Claude Code as your daily driver.

6
Topics
~35
Minutes
1.1
Prerequisite
Practical
Type
Progress:0%0 of 6
1

⚡ Shell Aliases for Productivity

🧠 Imagine It This Way: aliases turn long commands into 2–3-letter shortcuts. Every second saved adds up over hundreds of uses across weeks.

The first step to speeding up your workflow is to create aliases in your .bashrc or .zshrc. Claude Code is a command you’ll type dozens of times a day. Shortening claude to cc already saves 4 characters per use.

Beyond the basic alias, create aliases for compound operations you repeat often: resume the last session, run in one-shot mode with a specific model, or start in a specific folder.

recommended aliases (.bashrc / .zshrc)
# Aliases para Claude Code
alias cc='claude'
alias ccr='claude --resume'
alias ccp='claude -p'
alias cco='claude --model opus'
alias ccs='claude --model sonnet'

# Alias com pipe útil
alias ccgit='git diff | claude -p "resuma estas mudanças"'
alias ccreview='claude -p "revise este arquivo" <'
cc ccr claude claude --resume 2-3 chars vs 10-20 chars ×100 uses/day = minutes saved

In one sentence: aliases like cc, ccr, ccp shorten commands and speed up your day-to-day work.

2

📜 Custom Wrapper Scripts

🧠 Imagine It This Way: wrapper scripts combine claude -p with other tools in a single operation. It's DIY automation: simple, useful, and just for you.

A wrapper is a shell script that combines Claude Code with other tools. Unlike an alias (which is just a shortcut), a wrapper can include logic: check conditions, process output, save it to a file.

Practical examples: a script that runs git diff, passes it to Claude Code for review, and saves the result to a Markdown file. Or a script that takes a log file, sends it to Claude Code to diagnose, and opens the result in the editor.

example: review-pr.sh
#!/bin/bash
# review-pr.sh - Review automatizado de PR
DIFF=$(git diff main...HEAD)
if [ -z "$DIFF" ]; then
  echo "Nenhuma mudança encontrada."
  exit 0
fi
echo "$DIFF" | claude -p "Revise este diff.
Aponte: bugs, melhorias, e se segue os padroes do projeto.
Formato: markdown com seções." > review.md
echo "Review salvo em review.md"

In one sentence: wrapper scripts = claude -p + shell logic to automate repetitive tasks.

3

💻 VS Code Integration

🧠 Imagine It This Way: VS Code is the most popular editor. Using Claude Code inside it (integrated terminal + extension) creates a workflow where you never need to leave the editor.

The simplest way is to run Claude Code in the integrated terminal from VS Code (Ctrl+`). You see the code above and chat with Claude below. Better yet, use two side-by-side panels: editor + terminal with Claude Code.

Anthropic also offers a official Claude Code extension for VS Code that integrates more deeply: the agent appears as a side panel, can reference open files, and edits appear in the editor in real time.

Suggested VS Code settings
{
  "terminal.integrated.defaultProfile.linux": "bash",
  "terminal.integrated.fontSize": 13,
  "editor.formatOnSave": true,
  "workbench.panel.defaultLocation": "right"
}

In one sentence: VS Code integrated terminal + official extension = Claude Code without leaving the editor.

4

🪟 Multiplexer: tmux/screen + Claude

🧠 Imagine It This Way: tmux lets you run Claude Code in sessions that survive disconnections. Closed the terminal? Claude keeps running. Reconnect whenever you want.

O tmux (or screen) and is the perfect partner for Claude Code if you work on remote servers or want sessions that don't die. You open one pane with Claude Code, another with your editor, and can disconnect and reconnect at any time.

A classic setup: tmux new-session -s dev, splits into two panes (Ctrl+B %), run claude in one and edit in the other. If you need to leave, Ctrl+B d disconnects without killing it. tmux attach -t dev reconnects.

tmux + Claude Code
# criar sessão
tmux new-session -s claude-dev

# dividir em dois panes
Ctrl+B %     # split vertical
Ctrl+B "     # split horizontal

# rodar claude no pane esquerdo
claude

# desconectar (claude continua rodando)
Ctrl+B d

# reconectar depois
tmux attach -t claude-dev

In one sentence: tmux creates persistent sessions that survive disconnection; ideal for remote work.

5

📦 Dotfiles and Portability

🧠 Imagine It This Way: Versioned dotfiles in git ensure you can reproduce your setup on any new machine in minutes. Aliases, configs, global CLAUDE.md: everything versioned.

Create a repository of dotfiles with: .bashrc/.zshrc (aliases), ~/.claude/CLAUDE.md (global preferences), ~/.claude/settings.json (global config), and a install.sh that creates the symlinks.

With versioned dotfiles, setting up your machine or switching computers is no longer a headache. Clone the repo, run the installation script, and in 5 minutes your Claude Code is configured exactly as before.

💡 Suggested Dotfiles Structure

dotfiles/ → bash/aliases.sh, claude/CLAUDE.md, claude/settings.json, tmux/.tmux.conf, install.sh. install.sh creates symlinks for each file to the right location in your home directory.

In one sentence: dotfiles in git = reproducible setup on any new machine.

6

🏆 The Ultimate Daily Driver Setup

🧠 Imagine It This Way: here we bring it all together: aliases + VS Code + tmux + dotfiles + global CLAUDE.md. The result is a setup you turn on in the morning and are productive with in 10 seconds.

The complete setup brings all the pieces together: aliases in the shell for speed, VS Code with an integrated terminal for visual context, tmux for persistent sessions, dotfiles for portability, and Global CLAUDE.md for preferences that apply to every project.

The ideal daily rhythm: open tmux, run ccr (alias for claude --resume) to pick up where you left off, work for 1-2 hours, commit checkpoints, and when the context fills up, start a new session. Each day you improve the setup: a new alias here, a rule in CLAUDE.md there. In a week, the workflow is visibly faster than on day 1.

daily-driver-checklist.txt
Setup diário com Claude Code:
[x] Aliases no .bashrc/zshrc (cc, ccr, ccp)
[x] VS Code com terminal integrado
[x] tmux para sessões persistentes
[x] CLAUDE.md global com preferências pessoais
[x] CLAUDE.md por projeto com stack e regras
[x] .claudeignore protegendo secrets
[x] settings.json com allowedTools afinados
[x] Dotfiles no git para portabilidade
[x] Ritmo: resume → trabalha → commit → repete

In one sentence: aliases + VS Code + tmux + dotfiles + CLAUDE.md = maximum productivity in 10 seconds.

🧾 Module Summary

✓
Aliases — cc, ccr, ccp shorten commands and save minutes each day.
✓
Wrapper scripts — combine claude -p with Unix tools for automation.
✓
VS Code + tmux — integrated editor and persistent sessions.
✓
Dotfiles — reproducible setup on any machine via git.

Next module:

Track 2 — Plan and Loop Modes: Plan Mode, Loop Mode, and Agentic Coding.