-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.aliases
52 lines (39 loc) · 1.35 KB
/
.aliases
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
# Easier navigation: .., ..., ~ and -
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# List all files colorized in long format
alias l="ls -l"
# List all files colorized in long format, including dot files
alias la="ls -la"
alias ll="ls -al"
# List only directories
alias lsd='ls -l | grep "^d"'
# 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'"
# Enhanced WHOIS lookups
alias whois="whois -h whois-servers.net"
# Shortcuts
alias g="git"
alias gs="git status"
alias gd="git diff"
alias gl="git log"
alias gms="git merge staging"
alias gmd="git merge develop"
alias gcs="git checkout staging"
alias gcm="git checkout master"
alias gcd="git checkout develop"
alias gpd="git pull --rebase origin develop"
alias v="vim"
# File size
alias fs="stat -f \"%z bytes\""
alias pgstart="pg_ctl -D /usr/local/var/postgres -l /tmp/pglogfile start"
alias pgstop="pg_ctl -D /usr/local/var/postgres -l /tmp/pglogfile stop"
#copykey
alias sshkey="pbcopy < ~/.ssh/id_rsa.pub && echo 'Copied key to clipboard'"
alias lock='/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend'
alias sassyplate="git clone [email protected]:domain7/sassyplate.git .";