Repository navigation
My Shell Prefs
Shell Shortlings v1.0.0
π First Release
Introducing Shell Shortlings - a collection of single-letter shell aliases to supercharge your command-line workflow!
__
/ _)
.-^^^-/ /
__/ /
<__.|_|-|_|
β¨ What's New
- Automatic Installation Script: One-command setup for Fish, Bash, and Zsh
- Cross-Shell Support: Works seamlessly across different shells
- Smart Command Detection: Aliases only activate if the underlying command exists
- Platform Awareness: Automatic macOS-specific aliases
π Quick Start
Option 1: Install with Script (Recommended)
# Download and install
curl -fsSL https://github.com/amantham20/my_shell/archive/refs/tags/v1.0.0.tar.gz | tar -xz
cd my_shell-1.0.0
./install.sh fish # or bash, zshOption 2: Manual Installation
# Clone the repository
git clone --depth 1 --branch v1.0.0 https://github.com/amantham20/my_shell.git ~/.my_shell
# For Bash/Zsh - Add to ~/.bashrc or ~/.zshrc:
echo 'source ~/.my_shell/.shell_shortlings.sh' >> ~/.bashrc
# For Fish - Run the installer:
~/.my_shell/install.sh fishπ¦ What's Included
Core Aliases (26 shortcuts)
| Alias | Command | Description |
|---|---|---|
a |
git add -A |
Stage all changes |
b |
cd .. |
Go back one directory |
c |
clear |
Clear terminal |
d |
docker |
Docker CLI (if installed) |
e |
echo |
Echo text |
f |
tail -f |
Follow file output |
g |
git |
Git CLI |
h |
history |
Command history |
k |
kubectl |
Kubernetes CLI (if installed) |
l |
ls -lrhta |
List files (detailed) |
o |
open |
Open file/folder (macOS only) |
p |
pwd |
Print working directory |
q |
quit |
Quit |
s |
ssh |
SSH client |
t |
htop |
System monitor (if installed) |
u |
sudo |
Run as superuser |
v |
nvim/vim/vi |
Text editor (auto-detected) |
w |
watch |
Watch command output (if installed) |
x |
exit |
Exit terminal |
y |
yarn |
Yarn package manager (if installed) |
z |
cd - |
Return to previous directory |
Additional Aliases
SLURM workload manager (if installed):
sc,sctrlβscontrolsbβsbatchsqβsqueuescaβscancelsiβsinfo
systemd (if installed):
sy,systlβsystemctl
Helper Functions
cmd_exists <command>- Check if a command is availablerun_if_exists <command> [args...]- Run a command only if it exists
π οΈ Technical Details
Installation Locations
- Fish:
~/.config/fish/conf.d/shell_shortlings.fish - Bash: Appends source line to
~/.bashrc - Zsh: Appends source line to
~/.zshrc
Features
- β Automatic syntax conversion for Fish shell
- β Conditional alias loading (only if command exists)
- β Platform detection (macOS-specific aliases)
- β Priority-based editor selection (nvim β vim β vi)
- β No conflicts with existing configurations
π Requirements
- Bash 3.0+ / Zsh 5.0+ / Fish 3.0+
awk(for Fish conversion)- Git (optional, for cloning)
π Known Issues
None! This is the first stable release.
π‘ Usage Examples
# Stage all changes and commit
a && git commit -m "Update"
# Navigate quickly
b # Go up one directory
z # Return to previous directory
# Docker shortcuts
d ps # List containers
d exec -it container_name bash
# Kubernetes shortcuts
k get pods
k logs -f pod-name
# Quick editing
v ~/.bashrc # Opens in nvim/vim/vi
# System monitoring
t # Launch htop
w "ls -l" # Watch directory listingπ€ Contributing
Found a bug or have a suggestion? Please open an issue or submit a pull request!
π License
MIT License
π Credits
Created by Aman Dhruva Thamminana (@amantham20)
Enjoy your supercharged shell! π