Skip to content

Commit

Permalink
adding npm shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Sep 17, 2012
1 parent 77909a4 commit e7608da
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .aliases
Expand Up @@ -22,7 +22,7 @@ alias f='open -a Finder'
alias fireworks="open -a '/Applications/Adobe Fireworks CS6/Adobe Fireworks CS6.app'"
alias photoshop="open -a '/Applications/Adobe Photoshop CS6/Adobe Photoshop.app'"

# shortcuts
# general shortcuts
alias pro="cd ~/projects"
alias gh="open -a google\ chrome 'http://github.com/addyosmani'"
alias bl="open -a google\ chrome 'http://browserling.com'"
Expand Down Expand Up @@ -83,6 +83,15 @@ alias whois="whois -h whois-servers.net"
# Flush Directory Service cache
alias flush="dscacheutil -flushcache"

# npm
alias npmp="sudo npm publish"
alias npma="sudo npm adduser"
alias npmi="sudo npm install"
alias npmg="sudo npm install -g"
alias npmu="sudo npm update"
alias npmr="sudo npm uninstall"
alias npmrg="sudo npm uninstall -g"

This comment has been minimized.

Copy link
@sindresorhus

sindresorhus Oct 6, 2012

If you need sudo on these, you're system is configured wrong.


# 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 \/.*\""
Expand Down

0 comments on commit e7608da

Please sign in to comment.