-
Notifications
You must be signed in to change notification settings - Fork 0
/
.alliases
61 lines (49 loc) · 1.56 KB
/
.alliases
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
# navigation
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias l='ls -lah'
# git
alias g="git"
alias ga="git add ."
alias gc="git commit"
alias gcom="git commit -m"
alias gcs="git commit -S"
alias gph="git push"
alias gpl="git pull"
alias gs="git status"
alias gd="git diff"
alias gdc="git diff --cached"
alias gdh="git diff HEAD"
alias gds="git diff --staged"
alias gco="git checkout"
alias gb="git branch"
alias gba="git branch -a"
alias gbd="git branch -d"
alias gbl="git blame"
alias gcob="git checkout -b"
alias gcoh="git checkout HEAD"
# Shortcuts
alias web="cd ~/web"
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias p="cd ~/project"
alias mobile="cd ~/mobile"
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
alias code="open -a Visual\ Studio\ Code.app"
alias serve='ruby -run -e httpd . -p 8000'
alias servephp='php -S localhost:8000 -t .'
alias servephp3000='php -S localhost:3000 -t .'
alias servephp8888='php -S localhost:8888 -t .'
alias servepython='python -m SimpleHTTPServer 8000'
alias phpstorm="open -a PhpStorm -n --args '$1'"
alias webstorm="open -a WebStorm -n --args '$1'"
# tools
alias flush="dscacheutil -flushcache && killall -HUP mDNSResponder"
alias switch-php81="brew unlink [email protected] && brew link --overwrite --force php"
alias switch-php74="brew unlink php && brew link --overwrite --force [email protected]"
alias newlaravel='f(){ curl -s "https://laravel.build/"$@"" | bash; unset -f f; }; f'
alias wtf="wtfutil"
alias app="docker compose exec php"
alias apc="docker compose exec php bin/console"