-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases.zsh
More file actions
56 lines (44 loc) · 1.96 KB
/
aliases.zsh
File metadata and controls
56 lines (44 loc) · 1.96 KB
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
# Reload the shell (i.e. invoke as a login shell)
alias reload="exec $SHELL -l"
# Navigation --------------------------------------------------------
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias df="cd $DOTFILES"
## Prevent some custom executables from being ran in a subshell
alias dev="source dev"
alias beatswitch="source beatswitch"
alias crowdbase="source crowdbase"
alias dimg="source dimg"
# Listing -----------------------------------------------------------
alias ls="ls -G"
alias lsl="ls -Gl"
## List all, with human readable filesizes
alias lal="ls -Glah"
## List only directories
alias lsd="ls -lF ${colorflag} | grep --color=never '^d'"
# Development -------------------------------------------------------
alias vhost="subl /etc/hosts"
## Vagrant
alias v="vagrant version && vagrant global-status"
alias vst="vagrant status"
alias vgst="vagrant global-status"
alias vup="vagrant up"
alias vdo="vagrant halt"
alias vssh="vagrant ssh"
alias vkill="vagrant destroy"
alias vboot="vagrant up && vagrant ssh"
alias vrebuild="vagrant destroy --force && vagrant up"
# Utilities --------------------------------------------------------
alias weather="curl -4 http://wttr.in"
## Get macOS Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
alias update='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup; npm update npm -g; npm update -g; sudo gem update --system; sudo gem update'
## Flush Directory Service cache
alias flush="dscacheutil -flushcache && killall -HUP mDNSResponder"
## Merge PDF files
## Usage: `mergepdf -o output.pdf input{1,2,3}.pdf`
alias mergepdf='/System/Library/Automator/Combine\ PDF\ Pages.action/Contents/Resources/join.py'
## 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"