-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
20 lines (16 loc) · 845 Bytes
/
.aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Shortcuts
alias de="cd ~/Development/"
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
# Get OS X Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
alias update='sudo softwareupdate -i -a; brew update; brew upgrade --all; brew cleanup; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update'
# Checksums
alias sha256="openssl dgst -sha256"
alias sha1="openssl dgst -sha1"
# IP addresses
alias localip="ipconfig getifaddr en0"
alias ips="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"
# Aliases to control Redis
# Paths noted below are for Redis installed via Homebrew on OSX
alias startredis="redis-server /usr/local/etc/redis.conf"
alias stopredis="redis-cli shutdown"