-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases
More file actions
28 lines (21 loc) · 1.03 KB
/
aliases
File metadata and controls
28 lines (21 loc) · 1.03 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
# Get External IP / Internet Speed
alias myip="curl https://ipinfo.io/json" # or /ip for plain-text ip
alias speedtest="curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -"
# Show/hide hidden files in Finder
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
alias hide="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
# Print each PATH entry on a separate line
alias path='echo -e ${PATH//:/\\n}'
alias l='ls -lhF'
alias la='ls -lahF'
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias -- -="cd -"
# Copy the SSH public key to your clipboard.
alias pubkey="pbcopy < ~/.ssh/id_ed25519.pub"
# Recursively delete `.DS_Store` files
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
# Update macOS Software and Homebrew
alias update="sudo -v; sudo softwareupdate -ia; brew update; brew outdated --greedy --verbose; brew upgrade --greedy; brew autoremove; brew cleanup; brew doctor;"