Move zsh exports to zshenv
This commit is contained in:
		
							parent
							
								
									1473be6281
								
							
						
					
					
						commit
						cfdf23d93c
					
				
							
								
								
									
										32
									
								
								zshenv
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								zshenv
									
									
									
									
									
								
							| 
						 | 
					@ -1,2 +1,34 @@
 | 
				
			||||||
fpath=($fpath $HOME/.zsh/func)
 | 
					fpath=($fpath $HOME/.zsh/func)
 | 
				
			||||||
typeset -U fpath
 | 
					typeset -U fpath
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Unbreak broken, non-colored terminal
 | 
				
			||||||
 | 
					export TERM=xterm-256color
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Use vim as the editor
 | 
				
			||||||
 | 
					export EDITOR=vim
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Grep tweaks
 | 
				
			||||||
 | 
					export GREP_OPTIONS="-nRi --color --exclude-dir=.git  --exclude-dir=tmp --exclude-dir=log --exclude-dir=node_modules --exclude-dir=bower_components --exclude-dir=coverage --exclude-dir=.bundle --exclude=*.csv --exclude=*.pdf --exclude-dir=vendor --exclude-dir=rdoc --exclude-dir=target --exclude-dir=personal" # --exclude-dir=images --exclude-dir=coverage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export RBENV_PATH="$HOME/.rbenv"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export RUBY_HEAP_MIN_SLOTS=1000000 # for < 2.1.1, will raise warning when using 2.1.1
 | 
				
			||||||
 | 
					export RUBY_GC_HEAP_INIT_SLOTS=1000000 # for 2.1.1
 | 
				
			||||||
 | 
					export RUBY_HEAP_SLOTS_INCREMENT=1000000
 | 
				
			||||||
 | 
					export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
 | 
				
			||||||
 | 
					export RUBY_GC_MALLOC_LIMIT=1000000000
 | 
				
			||||||
 | 
					export RUBY_HEAP_FREE_MIN=500000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Setup Ansible
 | 
				
			||||||
 | 
					ANSIBLE_DIR=$HOME/.personal-files/open-source/ansible
 | 
				
			||||||
 | 
					export PYTHONPATH=${ANSIBLE_DIR}/lib:${PYTHONPATH}
 | 
				
			||||||
 | 
					export ANSIBLE_LIBRARY=${ANSIBLE_DIR}/library
 | 
				
			||||||
 | 
					export ANSIBLE_HOSTS=~/.ansible_hosts
 | 
				
			||||||
 | 
					export LEIN_FAST_TRAMPOLINE=y
 | 
				
			||||||
 | 
					export ANDROID_HOME=/usr/local/opt/android-sdk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#export PATH=/usr/local/sbin:/usr/local/bin:${PATH}
 | 
				
			||||||
 | 
					path=($HOME/bin ${ANSIBLE_DIR}/bin ${RBENV_PATH}/bin $path)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Start rbenv
 | 
				
			||||||
 | 
					eval "$(rbenv init -)"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										36
									
								
								zshrc
									
									
									
									
									
								
							
							
						
						
									
										36
									
								
								zshrc
									
									
									
									
									
								
							| 
						 | 
					@ -30,15 +30,6 @@ chpwd() {
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Unbreak broken, non-colored terminal
 | 
					 | 
				
			||||||
export TERM=xterm-256color
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Use vim as the editor
 | 
					 | 
				
			||||||
export EDITOR=vim
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Grep tweaks
 | 
					 | 
				
			||||||
export GREP_OPTIONS="-nRi --color --exclude-dir=.git  --exclude-dir=tmp --exclude-dir=log --exclude-dir=node_modules --exclude-dir=bower_components --exclude-dir=coverage --exclude-dir=.bundle --exclude=*.csv --exclude=*.pdf --exclude-dir=vendor --exclude-dir=rdoc --exclude-dir=target --exclude-dir=personal" # --exclude-dir=images --exclude-dir=coverage
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Save a ton of history
 | 
					# Save a ton of history
 | 
				
			||||||
export HISTSIZE=20000
 | 
					export HISTSIZE=20000
 | 
				
			||||||
export HISTFILE="$HOME/.history"
 | 
					export HISTFILE="$HOME/.history"
 | 
				
			||||||
| 
						 | 
					@ -67,30 +58,3 @@ source $ZSH/lib/*.zsh
 | 
				
			||||||
# Source my custom files after oh-my-zsh so I can override things.
 | 
					# Source my custom files after oh-my-zsh so I can override things.
 | 
				
			||||||
source $HOME/.dotfiles/zsh/aliases
 | 
					source $HOME/.dotfiles/zsh/aliases
 | 
				
			||||||
source $HOME/.dotfiles/zsh/functions
 | 
					source $HOME/.dotfiles/zsh/functions
 | 
				
			||||||
 | 
					 | 
				
			||||||
# Customize to your needs...
 | 
					 | 
				
			||||||
export PATH=/usr/local/sbin:/usr/local/bin:${PATH}
 | 
					 | 
				
			||||||
PATH=$PATH:$HOME/bin
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Start rbenv
 | 
					 | 
				
			||||||
export RBENV_PATH="$HOME/.rbenv"
 | 
					 | 
				
			||||||
export PATH="$RBENV_PATH/bin:$PATH"
 | 
					 | 
				
			||||||
eval "$(rbenv init -)"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export RUBY_HEAP_MIN_SLOTS=1000000 # for < 2.1.1, will raise warning when using 2.1.1
 | 
					 | 
				
			||||||
export RUBY_GC_HEAP_INIT_SLOTS=1000000 # for 2.1.1
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export RUBY_HEAP_SLOTS_INCREMENT=1000000
 | 
					 | 
				
			||||||
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
 | 
					 | 
				
			||||||
export RUBY_GC_MALLOC_LIMIT=1000000000
 | 
					 | 
				
			||||||
export RUBY_HEAP_FREE_MIN=500000
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Setup Ansible
 | 
					 | 
				
			||||||
ANSIBLE_DIR=/Users/pulsar/jelly/oss/python/ansible
 | 
					 | 
				
			||||||
export PATH=${ANSIBLE_DIR}/bin:${PATH}
 | 
					 | 
				
			||||||
export PYTHONPATH=${ANSIBLE_DIR}/lib:${PYTHONPATH}
 | 
					 | 
				
			||||||
export ANSIBLE_LIBRARY=${ANSIBLE_DIR}/library
 | 
					 | 
				
			||||||
export MANPATH=${ANSIBLE_DIR}/docs/man:${MANPATH}
 | 
					 | 
				
			||||||
export ANSIBLE_HOSTS=~/.ansible_hosts
 | 
					 | 
				
			||||||
export LEIN_FAST_TRAMPOLINE=y
 | 
					 | 
				
			||||||
export ANDROID_HOME=/usr/local/opt/android-sdk
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user