iTerm2 Terminal
"Clase de la hoja"
########################################################################################################################################################################################################################################################## Copiar todos los comandos
■/div titulada
Atajos y flujos de trabajo completos iTerm2 para mejorar la productividad terminal en macOS.
Navegación básica
Shortcut |
Description |
Cmd+T |
New Tab |
Cmd+W |
Close Tab |
Cmd+Shift+] |
Next Tab |
Cmd+Shift+[ |
Previous Tab |
Cmd+1-9 |
Go to Tab 1-9 |
Cmd+D |
Split Pane Vertically |
Cmd+Shift+D |
Split Pane Horizontally |
Cmd+] |
Next Pane |
Cmd+[ |
Previous Pane |
Cmd+Option+Arrow |
Navigate Between Panes |
Cmd+Shift+Enter |
Maximize/Restore Pane |
Gestión de ventana
Shortcut |
Description |
Cmd+N |
New Window |
Cmd+Shift+W |
Close Window |
Cmd+Option+H |
Hide Other Windows |
Cmd+M |
Minimize Window |
Cmd+Enter |
Toggle Full Screen |
Cmd+Shift+T |
Reopen Last Closed Tab |
Cmd+I |
Open Window Info |
Selección de texto y edición
Shortcut |
Description |
Double-click |
Select Word |
Triple-click |
Select Line |
Cmd+A |
Select All |
Cmd+C |
Copy |
Cmd+V |
Paste |
Cmd+Shift+V |
Paste Special |
Cmd+Option+V |
Paste Selection |
Cmd+F |
Find |
Cmd+G |
Find Next |
Cmd+Shift+G |
Find Previous |
Option+Click |
Move Cursor to Click Position |
Búsqueda e Historia
Shortcut |
Description |
Cmd+F |
Open Search |
Cmd+Option+F |
Open Search with Selection |
Cmd+R |
Clear Screen |
Cmd+K |
Clear Screen and Scrollback |
Cmd+Shift+H |
Show Command History |
Cmd+; |
Show Autocomplete |
Cmd+Shift+; |
Show Command History |
Perfiles y Preferencias
Shortcut |
Description |
Cmd+, |
Open Preferences |
Cmd+Option+, |
Open Profile Preferences |
Cmd+U |
Use Transparency |
Cmd+Option+B |
Show Background Image |
Características avanzadas
Shortcut |
Description |
Cmd+Shift+A |
Select Output of Last Command |
Cmd+Option+A |
Select All Output |
Cmd+Shift+S |
Save Selection |
Cmd+Option+E |
Expose All Tabs |
Cmd+Option+I |
Open Quickly |
Cmd+Shift+O |
Open Quickly with Selection |
Marcas y anotaciones
Shortcut |
Description |
Cmd+Shift+M |
Set Mark |
Cmd+Shift+J |
Jump to Mark |
Cmd+Option+M |
Show Marks |
Cmd+Shift+A |
Select to Mark |
Hotkey Window
Shortcut |
Description |
Option+Space |
Show/Hide Hotkey Window (configurable) |
Cmd+Option+0 |
Toggle Hotkey Window |
Terminal Commands Integration
Command |
Description |
imgcat image.png |
Display image in terminal |
it2dl filename |
Download file from remote server |
it2ul filename |
Upload file to remote server |
it2check |
Check iTerm2 integration |
Consejos de configuración
Configuración del perfil
# Set up custom profile
# Go to Preferences > Profiles > General
# Configure colors, fonts, and behavior
# Import/Export profiles
# Preferences > Profiles > Other Actions > Import/Export
Integración Shell
# Install shell integration
curl -L https://iterm2.com/shell_integration/install_shell_integration_and_utilities.sh|bash
# Add to ~/.zshrc or ~/.bash_profile
source ~/.iterm2_shell_integration.zsh
Cadenas de clave personalizadas
# Configure in Preferences > Profiles > Keys
# Add custom key bindings for frequently used commands
# Example: Cmd+Shift+R for "clear && ls -la"
Productividad Flujos de trabajo
Multi-Pane Development
# Split terminal for development workflow
# Pane 1: Code editor (vim/nano)
# Pane 2: File watcher/build process
# Pane 3: Git operations
# Pane 4: Server/application logs
Gestión del período de sesiones
# Use tmux with iTerm2 for session persistence
tmux new-session -d -s development
tmux split-window -h
tmux split-window -v
tmux attach-session -t development
Comandos rápidos
# Set up aliases in ~/.zshrc
alias ll="ls -la"
alias gs="git status"
alias gp="git push"
alias gc="git commit -m"
alias ..="cd .."
alias ...="cd ../.."
Buenas prácticas
Optimización del rendimiento
- Limite el tamaño del amortiguador de desplazamiento para un mejor rendimiento
- Utilice GPU renderizado cuando esté disponible
- Efectos visuales innecesarios
- Configurar las tasas de actualización apropiadas
Seguridad
- Use concha segura (SSH) con autenticación clave
- Configurar el tiempo de sesión para entornos sensibles
- Use perfiles separados para diferentes contextos de seguridad
- Permite la entrada segura del teclado para la entrada de contraseña
Personalización
- Crear perfiles para diferentes entornos de desarrollo
- Use esquemas de color que reduzcan la tensión ocular
- Configurar tamaños y familias adecuados
- Configurar barras de estado personalizado y placas
Integración del flujo de trabajo
- Integrar con sistemas de control de versiones
- Utilizar características de integración de shell
- Configurar el cambio de perfil automático
- Configurar desencadenantes y alertas personalizados