-
Notifications
You must be signed in to change notification settings - Fork 3
/
zshrc_mac
33 lines (28 loc) · 1.23 KB
/
zshrc_mac
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
########################
# Specially in Mac OSX #
########################
# brew
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_INSTALL_CLEANUP=1
export HOMEBREW_NO_ANALYTICS=1
#export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
export MANPATH=$HOME/AppData/LinuxMan:$MANPATH
hash -d desktop="$HOME/Desktop"
hash -d downloads="$HOME/Downloads"
hash -d documents="$HOME/Documents"
hash -d dropbox="$HOME/Dropbox"
hash -d code="$HOME/Code"
hash -d icloud="$HOME/Library/Mobile Documents"
export ONEDRIVE_PATH="$HOME/Library/CloudStorage/OneDrive-Personal"
hash -d onedrive="$ONEDRIVE_PATH"
export ALFRED_PREF_DIR="$ONEDRIVE_PATH/Library/Alfred"
hash -d backup="$HOME/Library/CloudStorage/OneDrive-Personal/Backup"
hash -d drafts-backup="$HOME/Library/Mobile Documents/iCloud~com~agiletortoise~Drafts5/Documents/Backups/Drafts"
# Code sub dirs
hash -d repos="$HOME/Code/repos"
alias finder_show='defaults write com.apple.finder AppleShowAllFiles YES'
alias finder_hide='defaults write com.apple.finder AppleShowAllFiles NO'
alias cppcompile='c++ -std=c++11 -stdlib=libc++'
alias marked="open -a Marked\ 2"
# iterm2 integration
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"