mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added missing FX and named colors to spectrum.
This commit is contained in:
parent
05c94e2dd5
commit
b65195156d
39 changed files with 57 additions and 16 deletions
|
|
@ -1,53 +0,0 @@
|
|||
# Install local gems according to Mac OS X conventions.
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
export GEM_HOME=$HOME/Library/Ruby/Gems/1.8
|
||||
export PATH=$GEM_HOME/bin:$PATH
|
||||
|
||||
# gem is slow; cache its output.
|
||||
cache_file="${0:h}/cache.zsh"
|
||||
if [[ ! -f "$cache_file" ]]; then
|
||||
echo export GEM_PATH=$GEM_HOME:$(gem env gempath) >! "$cache_file"
|
||||
source "$cache_file"
|
||||
else
|
||||
source "$cache_file"
|
||||
fi
|
||||
unset cache_file
|
||||
fi
|
||||
|
||||
# Loads RVM into the shell session.
|
||||
completion_file="${0:h}/_rvm"
|
||||
if [[ ! -e "$completion_file" ]] && [[ -L "$completion_file" ]]; then
|
||||
unlink "$completion_file" 2> /dev/null
|
||||
fi
|
||||
|
||||
if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then
|
||||
# Auto adding variable-stored paths to ~ list conflicts with RVM.
|
||||
unsetopt auto_name_dirs
|
||||
|
||||
# Source RVM.
|
||||
source "$HOME/.rvm/scripts/rvm"
|
||||
|
||||
# Complete RVM.
|
||||
if [[ ! -e "$completion_file" ]]; then
|
||||
ln -s \
|
||||
"$rvm_path/scripts/zsh/Completion/_rvm" \
|
||||
"$completion_file" \
|
||||
2> /dev/null
|
||||
fi
|
||||
fi
|
||||
unset completion_file
|
||||
|
||||
# Loads rbenv into the shell session.
|
||||
if [[ -s "$HOME/.rbenv/bin/rbenv" ]]; then
|
||||
path=("$HOME/.rbenv/bin" $path)
|
||||
eval "$(rbenv init -)"
|
||||
fi
|
||||
|
||||
# Set environment variables for launchd processes.
|
||||
if [[ "$OSTYPE" == darwin* ]]; then
|
||||
for env_var in GEM_PATH GEM_HOME; do
|
||||
launchctl setenv "$env_var" "${(P)env_var}" &!
|
||||
done
|
||||
unset env_var
|
||||
fi
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue