-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_aliases
More file actions
28 lines (23 loc) · 826 Bytes
/
bash_aliases
File metadata and controls
28 lines (23 loc) · 826 Bytes
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
#!/usr/bin/env bash
# Public IP address
alias wanip='dig +short myip.opendns.com @resolver1.opendns.com'
function update-bash-configs() {
currdir=$(pwd);
cd ~/.bash && git fetch origin && git pull origin master && cd $currdir
}
#PHPStorm XDebug ENV
function setXDebug() {
export XDEBUG_CONFIG="idekey=PHPSTORM"
}
alias xdebug_on="setXDebug"
alias xdebug_off='unset XDEBUG_CONFIG'
alias cafe='cat /dev/urandom | hexdump -C | grep "ca fe"'
alias ssh-register-agent='eval $(ssh-agent) && ssh-add'
alias docker-clean='docker rm $(docker ps -a -q) && docker rmi $(docker images -q)'
alias docker-rebuild='docker-clean && docker build .'
alias moo="fortune -s fortunes | cowsay"
alias top="htop"
alias lvm-mirror-status="sudo lvs -a -o +devices"
if [ -c ~/.bash/local_aliases ]; then
. ~/.bash/local_aliases
fi