-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Stolen from | ||
# https://github.com/sstephenson/rbenv/blob/master/completions/rbenv.zsh | ||
|
||
if [[ ! -o interactive ]]; then | ||
return | ||
fi | ||
|
||
compctl -K _rbenv rbenv | ||
|
||
_rbenv() { | ||
local word words completions | ||
read -cA words | ||
word="${words[2]}" | ||
|
||
if [ "${#words}" -eq 2 ]; then | ||
completions="$(rbenv commands)" | ||
else | ||
completions="$(rbenv completions "${word}")" | ||
fi | ||
|
||
reply=("${(ps:\n:)completions}") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# rehash shims | ||
rbenv rehash 2>/dev/null | ||
|
||
# shell thing | ||
rbenv() { | ||
command="$1" | ||
if [ "$#" -gt 0 ]; then | ||
shift | ||
fi | ||
|
||
case "$command" in | ||
shell) | ||
eval `rbenv "sh-$command" "$@"`;; | ||
*) | ||
command rbenv "$command" "$@";; | ||
esac | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export PATH="./bin:/usr/local/bin:/usr/local/sbin:$HOME/.sfs:$ZSH/bin:$HOME/.rbenv/bin:$PATH" | ||
export PATH="./bin:$HOME/.rbenv/bin:/usr/local/bin:/usr/local/sbin:$HOME/.sfs:$ZSH/bin:$PATH" | ||
|
||
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters