-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
96 lines (85 loc) · 2.53 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
## FUNCTIONS
if [ -x "/usr/bin/realpath" ]; then
gcmd() { md=${1:-./README.md}; [ -f ${md} ] && /usr/bin/google-chrome `realpath ${md}`; }
else
alias realpath='readlink -f'
fi
function arl() {
if [[ -n "$1" ]]; then
php artisan route:list|grep -i "$1";
else
php artisan route:list;
fi;
}
function arlc() {
if [[ -n "$1" ]]; then
php artisan route:list -c | grep -i "$1";
else
php artisan route:list -c;
fi;
}
function tll() {
if [[ -n "$1" ]]; then
tail -n $1 storage/logs/laravel.log
else
tail -f storage/logs/laravel.log
fi;
}
weblog() {
select logf in /var/log/nginx/*.log; do
tail -f $logf
break
done
}
camelcase() { perl -pe 's#(_|^)(.)#\u$2#g'; }
snakecase() { perl -pe 's#([A-Z])#_\L$1#g' | perl -pe 's#^_##'; }
## ALIASES
alias ,='cd ..'
alias ,,='cd ../..'
alias ,,,='cd ../../..'
alias c='clear'
alias info='info --vi-keys'
alias l='ls -CF'
alias la='ls -Al'
alias lg='ls -A -l --group-directories-first'
alias lk='ls -hlrt'
alias ll='ls -hl'
alias lld='ls -hld'
alias lz='ls -Z'
alias D='date +%Y%m%d'
alias a='php artisan'
alias am='php artisan migrate --step'
alias ams='php artisan migrate:status'
alias amrs='php artisan migrate:refresh --seed'
alias ccache='find cache \( -name "*nav*" -o -name "*menu*" \) -exec rm -fv {} \;'
alias clamshell='gconftool-2 --type string --set /apps/gnome-power-manager/buttons/lid_ac "nothing"'
alias d='date +%y%m%d'
alias dcc='echo "flush_all" | nc localhost 11211; drush cc all;'
alias dig='dig +noall +answer'
alias drush='drush -y'
alias dux='du --max-depth=1'
alias duxn='dux | sort -n'
alias gitr='echo "$ git remote show origin"; git remote show origin'
alias gits='echo "$ git status"; git status'
alias gitl='git log --pretty=oneline'
alias iptl='iptables --line-numbers -nL'
alias killidea='jps | grep Main | cut -d" " -f1 | xargs kill -9'
# alias phpdoc='/data/phpdocumentor/vendor/phpdocumentor/phpdocumentor/bin/phpdoc'
alias ping='ping -c3'
alias pshead='ps --sort -rss -eo rss,pid,command | head'
alias pyrus='php ~/bin/pyrus.phar'
alias rmsync='rsync --remove-source-files -Pavz'
alias rs='rsync -POavz'
alias s='date +%s'
alias stall='service --status-all'
alias tarrm='tar --remove-files'
alias xclipv='xclip -selection clipboard'
alias webacc='tail -f /var/log/nginx/access.log'
alias weberr='tail -f /var/log/nginx/error.log'
alias taill='tail -f storage/logs/laravel.log'
alias grepi='grep -i'
alias pandoc='pandoc --atx-headers'
alias gradle='gradle --warning-mode none'
alias ssc='sudo systemctl'
alias sjc='sudo journalctl'
[ -f ~/.aliases.ssh ] && . ~/.aliases.ssh