oh-my-zsh plugin cleanup
This commit is contained in:
parent
d25f33c4c4
commit
df584ae2e7
@ -1,6 +0,0 @@
|
||||
#compdef drush
|
||||
#autoload
|
||||
|
||||
local -a drush_commands
|
||||
drush_commands=($(drush --early=includes/complete.inc $words[*] ))
|
||||
_describe -t commands 'drush commands' drush_commands
|
@ -1,38 +0,0 @@
|
||||
_homebrew-installed() {
|
||||
type brew &> /dev/null
|
||||
}
|
||||
|
||||
FOUND_NODENV=0
|
||||
nodenvdirs=("$HOME/.nodenv" "/usr/local/nodenv" "/opt/nodenv" "/usr/local/opt/nodenv")
|
||||
if _homebrew-installed && nodenv_homebrew_path=$(brew --prefix nodenv 2>/dev/null); then
|
||||
nodenvdirs=($nodenv_homebrew_path "${nodenvdirs[@]}")
|
||||
unset nodenv_homebrew_path
|
||||
fi
|
||||
|
||||
for nodenvdir in "${nodenvdirs[@]}" ; do
|
||||
if [ -d $nodenvdir/bin -a $FOUND_NODENV -eq 0 ] ; then
|
||||
FOUND_NODENV=1
|
||||
if [[ $NODENV_ROOT = '' ]]; then
|
||||
NODENV_ROOT=$nodenvdir
|
||||
fi
|
||||
export NODENV_ROOT
|
||||
export PATH=${nodenvdir}/bin:$PATH
|
||||
eval "$(nodenv init --no-rehash - zsh)"
|
||||
|
||||
alias nodes="nodenv versions"
|
||||
|
||||
function current_node() {
|
||||
echo "$(nodenv version-name)"
|
||||
}
|
||||
|
||||
function nodenv_prompt_info() {
|
||||
echo "$(current_node)"
|
||||
}
|
||||
fi
|
||||
done
|
||||
unset nodenvdir
|
||||
|
||||
if [ $FOUND_NODENV -eq 0 ] ; then
|
||||
alias nodes='node -v'
|
||||
function nodenv_prompt_info() { echo "system: $(node -v | tr -d 'v')" }
|
||||
fi
|
@ -19,7 +19,7 @@ export ZSH_CUSTOM=$HOME/.zsh/custom
|
||||
|
||||
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
plugins=(asdf autojump aws extract command-not-found tmux tmuxinator git github git-flow ssh-agent golang vagrant knife docker docker-compose mix mix-fast)
|
||||
plugins=(asdf autojump aws extract command-not-found tmux tmuxinator git github ssh-agent docker docker-compose mix-fast)
|
||||
|
||||
# ruby
|
||||
plugins=($plugins ruby gem rails bundler heroku)
|
||||
@ -31,7 +31,7 @@ plugins=($plugins npm yarn)
|
||||
plugins=($plugins pip)
|
||||
|
||||
# php / drupal
|
||||
plugins=($plugins drush composer)
|
||||
plugins=($plugins composer)
|
||||
|
||||
# Platform specific settings
|
||||
case "$OSTYPE" in
|
||||
@ -43,8 +43,6 @@ case "$OSTYPE" in
|
||||
;;
|
||||
esac
|
||||
|
||||
UNBUNDLED_COMMANDS=(knife)
|
||||
|
||||
# OH MY ZSH!
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user