-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc_Darwin
30 lines (25 loc) · 966 Bytes
/
.zshrc_Darwin
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
# -*- mode: sh -*-
# vi: set ft=sh :
## java 文字コード
alias javac="javac -J-Dfile.encoding=UTF-8"
alias java="java -Dfile.encoding=UTF-8"
## pathを設定
path=(/usr/local/sbin(N-/) /usr/local/bin(N-/) /usr/bin(N-/) /bin(N-/) /usr/sbin(N-/) /sbin(N-/) /opt/X11/bin(N-/))
## coreutils
if [ -d /usr/local/opt/coreutils/libexec/gnubin ]; then
export PATH=/usr/local/opt/coreutils/libexec/gnubin:$PATH
export MANPATH=/usr/local/opt/coreutils/libexec/gnuman:$MANPATH
alias ls='ls --color=auto'
else
export LSCOLORS=gxfxcxdxbxegedabagacad
alias ls='ls -G'
fi
## tmux 内で
if [ -n "$TMUX" ]; then
alias pbcopy="reattach-to-user-namespace pbcopy"
alias pbpaste="reattach-to-user-namespace pbpaste"
alias launchctl="reattach-to-user-namespace launchctl"
fi
# cf: http://ryo511.blog.jp/archives/37312525.html
# gcc を入れて CC を上書きするのが正攻法?
export ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future