-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_aliases
53 lines (42 loc) · 2.25 KB
/
.bash_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
## GIT ##
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias gf='git fetch'
alias gk='gitk --all&'
alias gx='gitx --all'
alias gp='git push'
alias gl='git log --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"'
alias ls='gls -G'
alias ll='gls -FGlAhp --time-style=+"%d %B %Y %H:%M:%S" --color=auto' # Preferred 'ls' implementation
alias less='less -FSNRXc' # Preferred 'less' implementation
alias ~="cd ~"
alias kl="kubectl"
alias grep="rg"
alias myip="curl -s http://ip-api.com/json | jq -r '.query'" # myip: Public facing IP Address
alias netCons='lsof -i' # netCons: Show all open TCP/IP sockets
alias lsock='sudo /usr/sbin/lsof -i -P' # lsock: Display open sockets
alias lsockU='sudo /usr/sbin/lsof -nP | grep UDP' # lsockU: Display only open UDP sockets
alias lsockT='sudo /usr/sbin/lsof -nP | grep TCP' # lsockT: Display only open TCP sockets
alias ipInfo0='ipconfig getpacket en0' # ipInfo0: Get info on connections for en0
alias ipInfo1='ipconfig getpacket en1' # ipInfo1: Get info on connections for en1
alias openPorts='sudo lsof -i | grep LISTEN' # openPorts: All listening connections
alias showBlocked='sudo ipfw list' # showBlocked: All ipfw rules inc/ blocked IPs
alias finder='open `pwd`'
alias ws='python -m SimpleHTTPServer'
alias rmlog='rm -rfv target/*.log'
alias rmsock='rm -rfv ~/.ssh/sockets/*'
alias reload='exec $SHELL -l'
alias busy="cat /dev/urandom | hexdump -C | grep 'ca fe'"
## GRAILS ##
alias gt='grails test-app'
alias openTest='open target/test-reports/html/failed.html'
alias watchlog="tail -f target/"$(pwd | xargs basename)"-*-local.log"
## VAGRANT ##
alias vu="vagrant up"
alias vs="vagrant ssh"
alias vh="vagrant halt"
alias vd="vagrant destroy"
#eval "$(thefuck --alias)"