-
Notifications
You must be signed in to change notification settings - Fork 0
/
.commonrc
56 lines (37 loc) · 1.49 KB
/
.commonrc
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
export DOTFILES_PATH=$HOME/dotfiles
export IGNOREEOF=3
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CACHE_HOME=$HOME/.cache
export XDG_DATA_HOME=$HOME/.local/share
# for wsl
if [ $(uname -r | grep -i "microsoft") ]; then
export PATH="$(echo "$PATH" | sed -r -e 's;:/mnt/[^:]+;;g')"
fi
export PATH=$HOME/.local/bin:$HOME/local/bin:$HOME/bin:/usr/local/bin:/usr/bin/:/usr/local/sbin:/usr/sbin:/sbin:$PATH
if [ "$(uname)" = "Darwin" ]; then
export PATH=/usr/local/opt/coreutils/libexec/gnubin:$PATH
export MANPATH=/usr/local/opt/coreutils/libexec/gnuman:$MANPATH
elif [ $(uname -r | grep -i "microsoft") ]; then
export PATH=/home/linuxbrew/.linuxbrew/bin:$PATH
test $(command -v brew) && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
elif [ "$(uname)" = "Linux" ] && [ ! $(uname -r | grep -i "microsoft") ]; then
export PATH=$HOME/.linuxbrew/bin:$PATH
test $(command -v brew) && eval $($HOME/.linuxbrew/bin/brew shellenv)
fi
export EDITOR=emacs
################################################
#以上は木下さんの設定、以下が自分の設定
# pyenv
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# 履歴ファイルの保存先
export HISTFILE=${HOME}/.zsh_history
# メモリに保存される履歴の件数
export HISTSIZE=1000
# 履歴ファイルに保存される履歴の件数
export SAVEHIST=100000
#postgres
export PGDATA=/usr/local/var/postgres
# mymodule
export PYTHONPATH="/Users/masaya/python/mymodule$PYTHONPATH"