ソースを参照

One ~/.env to rule them all (and a proper $PATH in zsh, finally).

It turns out that you can't name your own variable `path`. It just
starts acting weird. So `p` it is for now and everyone is happy (kind
of).

Also, [pandoc](http://johnmacfarlane.net/pandoc/) compiled again!
Lucas Stadler 13 年 前
コミット
4214502da4
共有3 個のファイルを変更した13 個の追加11 個の削除を含む
  1. 0 11
      .bashrc
  2. 11 0
      .env
  3. 2 0
      .zshrc

+ 0 - 11
.bashrc

@ -33,15 +33,4 @@ ds() { du -ch $@ | tail -n1; }
33 33
# bash-completion for sudo
34 34
complete -cf sudo
35 35
36
for path in .bin .cabal ruby-1.9.4dev erlang-git ~/.lang_*; do
37
	if [ -d "$HOME/$path/bin" ]; then
38
		bindir="$HOME/$path/bin"
39
	elif [ -d "$path/bin" ]; then
40
		bindir="$path/bin"
41
	else
42
		bindir="$HOME/$path"
43
	fi
44
	PATH="$bindir:$PATH"
45
done
46
47 36
. $HOME/.env

+ 11 - 0
.env

@ -15,3 +15,14 @@ export HISTIGNORE HISTCONTROL HISTSIZE=1000000
15 15
export TODO="$HOME/d/todo"
16 16
export XDG_AUR_HOME=$HOME/Downloads/aur
17 17
export TZ="Europe/Berlin"
18
19
for p in .bin .cabal ruby-1.9.4dev erlang-git ~/.lang_*; do
20
	if [ -d "$HOME/$p/bin" ]; then
21
		bindir="$HOME/$p/bin"
22
	elif [ -d "$p/bin" ]; then
23
		bindir="$p/bin"
24
	else
25
		bindir="$HOME/$p"
26
	fi
27
	PATH="$bindir:$PATH"
28
done

+ 2 - 0
.zshrc

@ -41,3 +41,5 @@ bindkey $terminfo[kend]  end-of-line
41 41
bindkey $terminfo[khome] beginning-of-line
42 42
bindkey $terminfo[kdch1] delete-char
43 43
bindkey  history-incremental-search-backward
44
45
source ~/.env