-
Notifications
You must be signed in to change notification settings - Fork 6
/
.aliases
26 lines (18 loc) · 1.08 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
alias ngrok="/Users/jared/ngrok"
run_dropwizard_task() {
echo "http://localhost:8081/tasks/$1";
curl -X POST "http://localhost:8081/tasks/$1";
}
alias dw-task="run_dropwizard_task"
# Run python via pipenv
alias prp="pipenv run python"
# Syntax highlighted version of cat (requires pygments to be installed)
# pip3 install pygments
# @see https://github.com/addyosmani/dotfiles/blob/master/.aliases#L85
alias c="pygmentize -O style=monokai -f console256 -g"
# Empty the Trash on all mounted volumes and the main HDD
# Also, clear Apple’s System Logs to improve shell startup speed
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
# Kill all the tabs in Chrome to free up memory
# @see https://github.com/addyosmani/dotfiles/blob/master/.aliases#L85lained: http://www.commandlinefu.com/commands/view/402/exclude-grep-from-your-grepped-output-of-ps-alias-included-in-description
alias chromekill="ps ux | grep '[C]hrome Helper --type=renderer' | grep -v extension-process | tr -s ' ' | cut -d ' ' -f2 | xargs kill"