-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
21 lines (18 loc) · 1.33 KB
/
.aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use sudo with aliases
alias sudo="sudo "
# Shell
alias rsh="exec $SHELL -l"
# Network
alias cleardns="sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder"
alias ip="curl https://v4.ifconfig.co"
alias ipv6="curl https://v6.ifconfig.co"
alias lip="ipconfig getifaddr en0"
alias lswifi="airport -s"
alias pingtest="ping -c 5 google.de"
# Mercurial
alias hglg="hg log -G --pager always --color always --template '\033[0;31m{node|short} \033[0;34m{author|person} - \033[0;33m{tags} {bookmarks} {branches} \033[0m{desc|firstline|strip} \033[0;32m({date|age})\033[0m\n'"
alias hgo="hg outgoing -G --pager always --color always --template '\033[0;31m{node|short} \033[0;34m{author|person} - \033[0;33m{tags} {bookmarks} {branches} \033[0m{desc|firstline|strip} \033[0;32m({date|age})\033[0m\n'"
alias hgrpt="hg log --pager always --no-merges -d 'today' -u 'Benny Peckruhn' --template '\033[0;33m{bookmarks} {branches} \033[0m{desc|firstline|strip} \033[0;32m({date|age})\033[0m\n'"
alias hgrpy="hg log --pager always --no-merges -d 'yesterday' -u 'Benny Peckruhn' --template '\033[0;33m{bookmarks} {branches} \033[0m{desc|firstline|strip} \033[0;32m({date|age})\033[0m\n'"
alias hgparent="hg log -r 'p1(first(branch(.)))' --template '{branch}\n'"
alias hgclose="branch=\$(hg branch) && echo \$branch | pbcopy && hg ci -m \"CLOSE: \$branch\" --close-branch"