-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases.zsh
49 lines (37 loc) · 1.55 KB
/
aliases.zsh
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
# ZSH
alias reload=". ~/.zshrc && echo 'ZSH config reloaded from ~/.zshrc'"
# PHPStorm
alias phpstorm='open -a /Applications/PhpStorm.app "`pwd`"'
# VSCode
alias code='open -a "/Applications/Visual Studio Code.app" "`pwd`"'
# PHP
alias switch-php84="brew unlink [email protected] && brew link --overwrite --force php"
alias switch-php83="brew unlink [email protected] && brew link --overwrite --force php"
alias switch-php82="brew unlink [email protected] && brew link --overwrite --force php"
alias switch-php81="brew unlink [email protected] && brew link --overwrite --force php"
alias switch-php80="brew unlink [email protected] && brew link --overwrite --force php"
alias switch-php74="brew unlink [email protected] && brew link --overwrite --force php"
# Laravel
alias pa='php artisan'
# Git
alias pull="git pull"
alias push="git push"
alias commit="git add . && git commit -m 'wip'"
# Docker
dssh() {
docker compose exec -it $1 bash
}
alias dcu="docker compose up"
alias dps="docker ps"
# Tallieu & Tallieu
## Open a Tallieu & Tallieu project in PHPStorm
alias tnt-open="source ~/.dotfiles/tallieu/open.sh"
## Clone a repository from Bitbucket or Github
alias tnt-clone="source ~/.dotfiles/tallieu/clone.sh"
## Pull Obsidian notes
alias tnt-pull-notes="source ~/.dotfiles/tallieu/pull-notes.sh"
## Sync Obsidian notes
alias tnt-sync-notes="source ~/.dotfiles/tallieu/sync-notes.sh"
# Empty the Trash on all mounted volumes and the main HDD
# Also, clear Apple’s System Logs to improve shell startup speed
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"