-
Notifications
You must be signed in to change notification settings - Fork 12
/
.aliasesrc_macos
33 lines (24 loc) · 1.44 KB
/
.aliasesrc_macos
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
# ~/.bash_aliases_macos
# Define macOS specific aliases.
alias diffmerge="/Applications/DiffMerge.app/Contents/MacOS/DiffMerge"
alias xt-files="egrep -o '/[^/]+:[0-9]+'"
alias iphone="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator" # OSX Lion
alias stop-services="killall -STOP mdworker mds bstservice"
# Desktop.
alias icons-hide="defaults write com.apple.finder CreateDesktop -bool false && restart-finder"
alias icons-show="defaults write com.apple.finder CreateDesktop -bool true && restart-finder"
# Shows logs from Google apps.
alias log-google="log stream --level debug --predicate 'processImagePath contains \"Google\"'"
# Restart sound system.
alias restart-sound="sudo kextunload /System/Library/Extensions/AppleHDA.kext && sudo kextload /System/Library/Extensions/AppleHDA.kext"
# Restart Finder.
alias restart-finder="launchctl stop com.apple.Finder; launchctl start com.apple.Finder"
# Rsync
alias rsync='rsync --progress'
# Logs
alias log-php="log stream --level debug --predicate 'processImagePath contains \"php\"'"
# Filesystem
alias compress-big="find . -type f -size +10M -print0 | gxargs -r0 afsctool -c -v -s 10"
alias sudo-compress-big="find . -type f -size +10M -print0 | gxargs -r0 sudo afsctool -c -v -s 10"
# Docker
alias dev-env='docker run --cap-add SYS_PTRACE --rm -it -v ${PWD}:/home/ubuntu/workspace:rw kenorb/dev-env-linux bash'