-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSETUP-ALIASES-NOW.sh
More file actions
72 lines (64 loc) · 2.65 KB
/
SETUP-ALIASES-NOW.sh
File metadata and controls
72 lines (64 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
# Run this script to set up all aliases
# Usage: bash ~/github/jmjava/embabel-learning/SETUP-ALIASES-NOW.sh
echo "Setting up embabel aliases..."
# Add aliases to .bash_aliases
cat >> ~/.bash_aliases << 'ALIASES_EOF'
# ========================================
# Embabel Project Monitoring Aliases
# ========================================
alias em='~/github/jmjava/embabel-learning/scripts/monitor-embabel.sh'
alias esync='~/github/jmjava/embabel-learning/scripts/sync-upstream.sh all'
alias ecompare='~/github/jmjava/embabel-learning/scripts/compare-branches.sh all'
alias elist='~/github/jmjava/embabel-learning/scripts/list-embabel-repos.sh'
alias efork='~/github/jmjava/embabel-learning/scripts/fork-all-embabel.sh'
alias eclone='~/github/jmjava/embabel-learning/scripts/clone-embabel-repos.sh'
alias epr='~/github/jmjava/embabel-learning/scripts/view-pr.sh'
# Contribution Tracking Aliases
alias emy='~/github/jmjava/embabel-learning/scripts/my-contributions.sh'
alias eprep='~/github/jmjava/embabel-learning/scripts/prep-for-discussion.sh'
alias ereview='~/github/jmjava/embabel-learning/scripts/review-my-pr.sh'
# Navigation Aliases
alias eguide='cd ~/github/jmjava/guide'
alias eagent='cd ~/github/jmjava/embabel-agent'
alias elearn='cd ~/github/jmjava/embabel-learning'
# Git shortcuts
alias gst='git status'
alias glog='git log --oneline --graph --decorate -20'
alias gfetch='git fetch --all --prune'
ALIASES_EOF
echo ""
echo "✓ Aliases added to ~/.bash_aliases"
echo ""
echo "================================================"
echo "IMPORTANT: Run this command to activate aliases:"
echo "================================================"
echo ""
echo " source ~/.bash_aliases"
echo ""
echo "Or open a new terminal window."
echo ""
echo "Available aliases:"
echo " em - Monitor embabel projects"
echo " esync - Sync with upstream"
echo " ecompare - Compare with upstream"
echo " elist - List all embabel repos and status"
echo " efork - Fork all embabel repositories"
echo " eclone - Clone forked repositories"
echo " epr - View PR details"
echo " emy - Find all YOUR contributions ✨"
echo " eprep - Prepare discussion brief ✨"
echo " ereview - Quick review of your PR ✨"
echo " eguide - cd to guide repo"
echo " eagent - cd to embabel-agent repo"
echo " elearn - cd to embabel-learning"
echo " gst - git status"
echo " glog - pretty git log"
echo " gfetch - fetch from all remotes"
echo ""
echo "================================================"
echo "Test an alias:"
echo "================================================"
echo ""
echo " source ~/.bash_aliases && elist"
echo ""