-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_osx
27 lines (21 loc) · 1.04 KB
/
.bash_osx
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
#!/bin/bash
# .bash_osx
# ----------------------------
if [[ "$OSTYPE" == "darwin"* ]]; then
# shortcuts
alias f="open -a Finder"
alias xcode="open -a xcode"
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
alias sublime="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
alias st="open -a SourceTree ."
# Use AirDrop over every interface.
defaults write com.apple.NetworkBrowser BrowseAllInterfaces 1
# Disable the "Are you sure you want to open this application?" dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
# hide/show files
alias hidefiles='defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder'
alias showfiles='defaults write com.apple.finder AppleShowAllFiles 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'
fi