-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
58 lines (44 loc) · 1.82 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
53
54
55
56
57
58
#!/bin/bash
alias docs="cd ~/Documents"
alias demos="cd ~/Music/Demos"
todo_dir='~/todo'
alias td="vi $todo_dir/todo.wofl"
alias tdp="cat $todo_dir/todo.wofl"
alias tds="vi $todo_dir"
alias tdc="$todo_dir/push"
alias tdp="$todo_dir/pull"
alias slackmd="~/.dotfiles/tools/copy_for_pasting_in_slack.py"
alias go-cover="go test -coverprofile=coverage.out && go tool cover -html=coverage.out && rm coverage.out"
# alias scheme=/Applications/MIT-Scheme.app/Contents/Resources/mit-scheme
alias chr="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary"
alias cx="open https://calendar.google.com/calendar/b/3/r"
alias ca="open https://calendar.google.com/calendar/b/0/r"
alias hours="~/code/calendar/cli"
alias timer="~/tools/timer.py"
function notify() {
# useful for getting a notification when a long-running process is done
osascript -e 'display notification "Done doing that ✅" with title "Done!" sound name "Bonk"'
}
alias v="mvim ."
alias edd='emacs --daemon' # start emacs server in background
alias e='emacsclient -t' # open emacs in terminal
alias ecc='emacsclient -c' # open GUI-emacs
alias ew='emacs -nw -q' # opens vanilla emacs in the terminal
alias t=tmux
alias gbclean="git branch --merged | grep -v \* | xargs git branch -d"
alias gbc="git branch --show-current"
alias gu="gbc | xargs git pull origin"
alias gpc="gbc | xargs git push origin"
alias jt="gbc | cut -d '/' -f2 | cut -d '-' -f1,2"
function ggco() {
branch_name="$1"
git fetch origin "$branch_name"
git checkout "$branch_name"
}
alias gbcp="gbc | tr -d '\n' | pbcopy"
alias docker-start="sudo systemctl start docker"
alias docker-test="sudo docker run hello-world"
alias now="node -e 'process.stdout.write(new Date().toISOString())'"
alias main="code ~/_/main"
# conversions
alias mm="python ~/.dotfiles/tools/convert_inches_to_mm.py"