-
Notifications
You must be signed in to change notification settings - Fork 13
/
.bashrc_8_mac.sh
30 lines (23 loc) · 1.05 KB
/
.bashrc_8_mac.sh
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
####################################
# SPECIFIC conf for Mac
[ $(uname -s) = Darwin ] || return 0
####################################
PATH=/usr/X11/bin:$PATH
PATH=/opt/local/bin:/opt/local/sbin:$PATH # Macports
alias l='ls -BFG'
alias df='df -h'
alias psf='ps -eo user,pid,%cpu,%mem,ppid,tty,stat,rss,etime,start,nice,psr,args 2>/dev/null'
alias f='open -a /Applications/Firefox.app'
alias pdf='open -a /Applications/Preview.app'
nav () { open -a /System/Library/CoreServices/Finder.app "${@:-.}"; }
alias js=/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc
alias freeplane='open -a /Applications/Freeplane.app'
alias eclipse='open -a /Applications/eclipse/Eclipse.app'
alias st='open -a /Applications/Sublime\ Text.app'
alias dia='open -a /Applications/Dia.app'
alias xcode='echo No, use Sublime Text && st' #'open -a /Applications/Xcode.app'
word () { open -a "$(echo /Applications/Microsoft\ Office*/Microsoft\ Word.app | tail -n 1)" "$@"; }
unfuncalias touch
slocate() { # Spotlight search
mdfind "kMDItemDisplayName == '$@'wc";
}