-
Notifications
You must be signed in to change notification settings - Fork 0
/
alisases.zsh
44 lines (34 loc) · 1.32 KB
/
alisases.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
alias br="source $HOME/.zshrc"
alias c="clear"
alias shrug="echo '¯\_(ツ)_/¯' | pbcopy"
# Dotfiles
alias dot="cd $DOTFILES && vim . && cd -"
alias nvimm="cd $DOTFILES/nvim && vim . && cd -"
alias conf="cd ~/.config/nvim && vim . && cd -"
alias dotfiles="cd $DOTFILES"
# VIM
alias vim="nvim"
alias vi="nvim"
# Laravel && PHP
alias a="php artisan"
alias php="valet php"
alias composer="valet composer"
alias which-php="valet which-php"
alias sail="[ -f sail ] && sh sail || sh vendor/bin/sail"
alias pint="./vendor/bin/pint -v"
# Flutter
alias f="fvm flutter"
alias frunner="f pub run build_runner build"
alias d="fvm dart"
alias drunner="d pub run build_runner build"
# SSH
alias addssh="ssh-add --apple-use-keychain ~/.ssh/id_ed25519"
alias copyssh="pbcopy < ~/.ssh/id_ed25519.pub"
# Show/hide hidden files in Finder
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
alias hide="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
# Hide/show all desktop icons (useful when presenting)
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder"
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder"
alias tm="~/.dotfiles/tmux-sessionizer"
alias nuke="git clean -df && git reset --hard"