-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.aliases
More file actions
89 lines (69 loc) · 2.36 KB
/
Copy path.aliases
File metadata and controls
89 lines (69 loc) · 2.36 KB
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
# ------------------------------------------------------------------------------
# File Navigation
# ------------------------------------------------------------------------------
# Easier navigation
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
# List files pretty format and colors
alias ls='ls -FGH'
alias la='ls -AG'
alias ll='ls -AlGh'
alias history='fc -l 1'
# Shortcuts
alias sites="cd ~/sites"
alias dk="cd ~/Desktop"
# ------------------------------------------------------------------------------
# Miscellaneous
# ------------------------------------------------------------------------------
# Preview Files
alias cat='bat'
# Make aliases sudo-able
alias sudo="sudo "
# Super user
alias _="sudo"
alias please="sudo"
alias fucking="sudo"
alias fuck="sudo $(fc -ln -1)"
# Refresh dotfiles for the current shell
alias refresh="source ~/.zshrc"
alias reload="source ~/.zshrc"
# https://github.com/chubin/wttr.in
# Overcast
# .--. 20 – 21 °C
# .-( ). ← 12 km/h
# (___.__)__) 10 km
# 0.1 mm
alias weather="curl -4 http://wttr.in/Mexico_City"
# https://github.com/busyloop/lolcat
# A journey of a thousand miles must begin with a single step.
# -- Lao Tsu
# ^__^
# (oo)\_______
# (__)\
#
alias lolcow="fortune | cowsay | lolcat"
# ------------------------------------------------------------------------------
# PHP Specific
# ------------------------------------------------------------------------------
alias cda="composer dump-autoload"
# Laravel artisan shortcuts
alias artisan="php artisan"
alias tinker="php artisan tinker"
alias migrate="php artisan migrate"
alias seed="php artisan db:seed"
# Run phpunit test suite
alias t="clear! && ./vendor/bin/phpunit --order-by=defects --stop-on-failure --stop-on-error"
alias tp="clear! && php artisan test --parallel"
alias tpr="clear! && php artisan test --parallel --recreate-databases"
alias phpunit="./vendor/bin/phpunit"
alias pf="./vendor/bin/phpunit --filter"
alias testcov="php artisan test --coverage"
alias pest="./vendor/bin/pest"
# disk space
alias space="df -h /dev/sda8 --output=source,fstype,size,used,avail,pcent"
# Delete all .DS_Store files recursively
alias deleteDS="find . -name '*.DS_Store' -type f -ls -delete"
alias removeDS="find . -name '*.DS_Store' -type f -ls -delete"
# Flush DNS cache
alias flushdns="sudo killall -HUP mDNSResponder"