Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
643a4e77
Commit
643a4e77
authored
Jun 01, 2011
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #375 from betawaffle/rollback-366
Rollback of Pull #366
parents
ba0f1360
9801ad64
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
26 deletions
+1
-26
brew.plugin.zsh
plugins/brew/brew.plugin.zsh
+0
-12
node.plugin.zsh
plugins/node/node.plugin.zsh
+1
-4
npm.plugin.zsh
plugins/npm/npm.plugin.zsh
+0
-2
rvm.plugin.zsh
plugins/rvm/rvm.plugin.zsh
+0
-8
No files found.
plugins/brew/brew.plugin.zsh
View file @
643a4e77
# Move /usr/local/bin (path where brews are linked) to the front of the path
# This will allow us to override system binaries like ruby with our brews
# TODO: Do this in a more compatible way.
# What if someone doesn't have /usr/bin in their path?
export
PATH
=
`
echo
$PATH
|
sed
-e
's|/usr/local/bin||'
-e
's|::|:|g'
`
# Remove /usr/local/bin
export
PATH
=
`
echo
$PATH
|
sed
-e
's|/usr/bin|/usr/local/bin:&|'
`
# Add it in front of /usr/bin
export
PATH
=
`
echo
$PATH
|
sed
-e
's|/usr/bin|/usr/local/sbin:&|'
`
# Add /usr/local/sbin
alias
brews
=
'brew list -1'
alias
brews
=
'brew list -1'
function
brew-link-completion
{
ln
-s
"
$(
brew
--prefix
)
/Library/Contributions/brew_zsh_completion.zsh"
"
$ZSH
/plugins/brew/_brew.official"
}
plugins/node/node.plugin.zsh
View file @
643a4e77
# This works if you installed node via homebrew.
export
NODE_PATH
=
"/usr/local/lib/node"
# Open the node api for your current version to the optional section.
# Open the node api for your current version to the optional section.
# TODO: Make the section part easier to use.
# TODO: Make the section part easier to use.
function
node-
api
{
function
node-
docs
{
open
"http://nodejs.org/docs/
$(
node
--version
)
/api/all.html#
$1
"
open
"http://nodejs.org/docs/
$(
node
--version
)
/api/all.html#
$1
"
}
}
plugins/npm/npm.plugin.zsh
deleted
100644 → 0
View file @
ba0f1360
# TODO: Don't do this in such a weird way.
export
PATH
=
`
echo
$PATH
|
sed
-e
's|/usr/bin|/usr/local/share/npm/bin:&|'
`
plugins/rvm/rvm.plugin.zsh
View file @
643a4e77
fpath
=(
$ZSH
/plugins/rvm
$fpath
)
autoload
-U
compinit
compinit
-i
alias
rubies
=
'rvm list rubies'
alias
rubies
=
'rvm list rubies'
alias
gemsets
=
'rvm gemset list'
alias
gemsets
=
'rvm gemset list'
...
@@ -35,10 +31,6 @@ function rvm-update {
...
@@ -35,10 +31,6 @@ function rvm-update {
rvm reload
# TODO: Reload rvm completion?
rvm reload
# TODO: Reload rvm completion?
}
}
function
rvm-link-completion
{
ln
-s
"
$rvm_path
/scripts/zsh/Completion/_rvm"
"
$ZSH
/plugins/rvm/_rvm.official"
}
# TODO: Make this usable w/o rvm.
# TODO: Make this usable w/o rvm.
function
gems
{
function
gems
{
local
current_ruby
=
`
rvm-prompt i v p
`
local
current_ruby
=
`
rvm-prompt i v p
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment