-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
32 lines (22 loc) · 918 Bytes
/
.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
# better ls as ll - RHEL inspired
alias ll='ls -lGa'
# list the 5 most recently changed files/dirs
alias ll5='ls -ltr | tail -n5'
# make all greps colorful
alias grep='grep --color=auto'
# list all bound listening ports like linux netstat
alias netlist='sudo lsof -i -P | grep -i "listen"'
# cd to the directory currently open in finder
alias cdf="eval \"cd \\\"\\\`osascript -e 'tell app \\\\\\\"Finder\\\\\\\" to return the POSIX path of (target of window 1 as alias)'\\\`\\\"\""
# open Hex Field on a file
alias hex="open -a \"Hex Fiend\""
# show all files w/ color in tree by default
alias tree="tree -aC"
# open pycharm on a file
alias pyc='open -a /Applications/PyCharm\ CE.app'
# pretty print a JSON file
alias pprint="python -m json.tool"
# open a mitmproxy stream file in CLI
alias mitmread="mitmproxy --no-server -r"
# open a mitmproxy stream file in web
alias mitmreadweb="mitmweb --no-server -r"