forked from driesvints/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
aliases.zsh
52 lines (44 loc) · 1.53 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
50
51
52
# Shortcuts
alias copyssh="pbcopy < $HOME/.ssh/id_ed25519.pub"
alias reloadshell="source $HOME/.zshrc"
alias reloaddns="dscacheutil -flushcache && sudo killall -HUP mDNSResponder"
alias ls="/opt/homebrew/opt/coreutils/libexec/gnubin/ls"
alias ll="ls -AhlFo --color --group-directories-first"
alias shrug="echo '¯\_(ツ)_/¯' | pbcopy"
alias c="clear"
# Directories
alias dotfiles="cd $DOTFILES"
alias library="cd $HOME/Library"
alias dev="cd $HOME/dev"
alias clickbar="cd $HOME/clickbar"
# Laravel
alias a="php artisan"
alias mfs="php artisan migrate:fresh --seed"
alias seed="php artisan db:seed"
alias va="valet php artisan"
alias vmfs="valet php artisan migrate:fresh --seed"
alias vseed="valet php artisan db:seed"
# PHP
alias cfresh="rm -rf vendor/ composer.lock && composer i"
# JS
alias nfresh="rm -rf node_modules/ && pnpm install"
alias p="pnpm"
# Book-n-Drive
alias bnd="curl https://web.book-n-drive.de/api/vehicles\?bounding_box\=8.64213493564867,49.84915750937637,8.644833237917652,49.85081952465208 -s | jq 'length'"
# Git
alias gst="git status"
alias gb="git branch"
alias gc="git checkout"
alias gl="git log --oneline --decorate --color"
alias amend="git add . && git commit --amend --no-edit"
alias commit="git add . && git commit -m"
alias diff="git diff"
alias force="git push --force"
alias nuke="git clean -df && git reset --hard"
alias pop="git stash pop"
alias pull="git pull"
alias push="git push"
alias resolve="git add . && git commit --no-edit"
alias stash="git stash -u"
alias unstage="git restore --staged ."
alias wip="commit wip"