Portable shell configuration that works across both bash and zsh environments.
- Git-aware prompt: Shows current branch and dirty state
- Smart aliases: Common shortcuts for git, navigation, and tmux
- Cross-shell compatible: Works with both bash and zsh
Add this single line to your ~/.bashrc or ~/.zshrc:
source ~/config/init.shThat's it! All features will be automatically loaded.
- Color-coded git status (green = clean, red = uncommitted changes)
- Shows current branch name
- Fast and lightweight
ll- detailed file listingc <name>- cd to ~/workspace/mkd <dir>- create directory and cd into it- Git:
g,gco,gpo,gcom,gpom,gst,glg - Git functions:
rbm,clb,gpc,gsc - Tmux:
tls,t <session> extract <file>- extract any archive type
init.sh- Main entry point (source this!).alias- All shell aliases and functionsprompt.sh- Git-aware prompt configuration
Edit these files to customize:
.alias- Add your own aliases/functionsprompt.sh- Change prompt colors and format
All git functions automatically detect whether your repo uses main or master as the default branch.