Skip to content
Navigation Menu
Toggle navigation
Sign in
Product
GitHub Copilot
Write better code with AI
Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
All features
Documentation
GitHub Skills
Blog
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
White papers, Ebooks, Webinars
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
Enterprise platform
AI-powered developer platform
Available add-ons
Advanced Security
Enterprise-grade security features
GitHub Copilot
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search or jump to...
Search code, repositories, users, issues, pull requests...
Provide feedback
We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Reseting focus
{{ message }}
mathiasbynens
/
dotfiles
Public
Notifications
You must be signed in to change notification settings
Fork
8.7k
Star
30.6k
Code
Issues
144
Pull requests
48
Actions
Projects
Security
Insights
Additional navigation options
Pull requests
Actions
Projects
Security
Insights
Files
7d02270
Breadcrumbs
dotfiles
/
.aliases
Copy path
Blame
Blame
Latest commit
mathiasbynens
Initial commit.
Sep 6, 2011
7d02270
·
Sep 6, 2011
History
History
52 lines (40 loc) · 1.58 KB
7d02270
Breadcrumbs
dotfiles
/
.aliases
Top
File metadata and controls
Code
Blame
52 lines (40 loc) · 1.58 KB
Raw
# Easier navigation: .., ..., ~ and - alias ..="cd .." alias ...="cd ../.." alias ~="cd ~" # `cd` is probably faster to type though alias -- -="cd -" # List all files colorized in long format, including dot files alias la="ls -Gla" # IP addresses alias ip="dig +short myip.opendns.com @resolver1.opendns.com" alias localip="ipconfig getifaddr en1" alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'" # Flush Directory Service cache alias flush="dscacheutil -flushcache" # View HTTP traffic alias sniff="sudo ngrep -d 'en1' -t '^(GET|POST) ' 'tcp and port 80'" alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET \/.*\"" # Start an HTTP server from a directory alias server="open http://localhost:8080/ && python -m SimpleHTTPServer 8080" # Trim new lines and copy to clipboard alias c="tr -d '\n' | pbcopy" # Shortcuts alias d="cd ~/Documents/Dropbox" alias p="cd ~/Projects" alias g="git" alias v="vim" alias m="mate ." # File size alias fs="stat -f \"%z bytes\"" # ROT13-encode text. Works for decoding, too! ;) alias rot13='tr a-zA-Z n-za-mN-ZA-M' # Disable Spotlight alias spotoff="sudo mdutil -a -i off" # Enable Spotlight alias spoton="sudo mdutil -a -i on" # One of @janmoesen’s ProTip™s for method in GET POST HEAD PUT DELETE; do alias "$method"="lwp-request -m '$method'"; done # Stuff I never really use but cannot delete either because of http://xkcd.com/530/ alias stfu="osascript -e 'set volume output muted true'" alias pumpitup="osascript -e 'set volume 10'" alias hax="growlnotify -a 'Activity Monitor' 'System error' -m 'WTF R U DOIN'"
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