-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases-post-scripts
36 lines (36 loc) · 1.08 KB
/
.aliases-post-scripts
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
#! /bin/zsh
alias gbh=git_branch_history
alias gbhl="gbh list"
alias gbhc="gbh csv"
alias gbml="git_backmerge_latest_master"
alias gbmlc='gacp . "Backmerge $(gbh last) into $(gbh current)"'
alias gbsu="git_branch_set_upstream"
alias gcb="git_current_branch"
alias glb="gbh last"
alias gmlc='gacp . "Merge $(gbh last) into $(gbh current)"'
alias bks=buildkite_state
alias fe="file_editor"
alias hurls=handy_urls
alias list_scripts="for_file_in_dir --file-name-only $DOTFILES/scripts 'puts file'"
alias lss="list_scripts"
alias psaux="parse_ps_aux"
alias rebuild_indices="rebuild_open_with_index && rebuild_spotlight_index"
alias rbi="rebuild_indices"
alias rbfind="ruby_find"
alias update_slack_theme="add_custom_theme_to_slack"
alias w2f="file_editor"
alias wxr=weather
alias netd="network_diagnostics"
alias on_port=port_checker_local
alias open_ports=port_checker_remote
function kill_ports {
for port in $@; do
# check if port in use
if [[ $(lsof -i :$port) ]]; then
die $(on_port pid $port)
else
echo "Port $port is not in use"
fi
done
}
echo "Sourced .aliases-post-scripts"