forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
aliases.zsh
35 lines (28 loc) · 978 Bytes
/
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
# Shortcuts
alias f='open -a Finder ./'
alias artisan="php artisan"
alias pubkey="cat ~/.ssh/id_rsa.pub | pbcopy"
alias phpunit=./vendor/bin/phpunit
alias codecept=./vendor/bin/codecept
alias reloadcli="source $HOME/.zshrc"
alias reloaddns="dscacheutil -flushcache && sudo killall -HUP mDNSResponder"
alias weather="curl -4 wttr.in/bristol"
alias cat="bat"
alias docker-compose='docker compose'
# Directories
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias dotfiles="cd $DOTFILES"
alias library="cd $HOME/Library"
alias sites="cd $HOME/Sites"
# List all files colorized in long format
alias l="ls -lFG"
# List all files colorized in long format, including dot files
alias la="ls -laFG"
# list all files in long format, including dot files, with sizes human readable
alias ll="ls -lhaFG"
# List only directories
alias lsd='ls -lFG | grep "^d"'
alias hr="printf '%*s\n' \"${COLUMNS:-$(tput cols)}\" '' | tr ' ' -"
# Enable aliases to be sudo’ed
alias sudo='sudo '