Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
fb1e4b7a
Commit
fb1e4b7a
authored
Aug 17, 2017
by
Ed Reel
Committed by
Kazushi (Jam) Marukawa
Aug 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update nodebrew to add completion support
parent
fd9a97b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
packages/nodebrew.rb
packages/nodebrew.rb
+19
-12
No files found.
packages/nodebrew.rb
View file @
fb1e4b7a
...
...
@@ -3,7 +3,7 @@ require 'package'
class
Nodebrew
<
Package
description
'Node.js version manager'
homepage
'https://github.com/hokaccha/nodebrew'
version
'v0.9.7'
version
'v0.9.7
-1
'
source_url
'https://github.com/hokaccha/nodebrew/archive/v0.9.7.tar.gz'
source_sha256
'3aa8b0cf30024d105f1ac6921aadf0440bc95bcae43df9d6ec58fc9de8cd352e'
...
...
@@ -14,20 +14,27 @@ class Nodebrew < Package
system
"NODEBREW_ROOT=
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/nodebrew perl nodebrew setup > /dev/null"
system
"mkdir -p
#{
CREW_DEST_DIR
}#{
CREW_PREFIX
}
/bin"
system
"mkdir -p
#{
CREW_DEST_DIR
}
/home/
#{
USER
}
/user"
system
"ln -s
#{
CREW_LIB_PREFIX
}
/nodebrew/nodebrew
#{
CREW_DEST_DIR
}#{
CREW_PREFIX
}
/bin/"
system
"ln -s
#{
CREW_LIB_PREFIX
}
/nodebrew/current/bin/node
#{
CREW_DEST_DIR
}#{
CREW_PREFIX
}
/bin/"
system
"ln -s
#{
CREW_LIB_PREFIX
}
/nodebrew/current/bin/npm
#{
CREW_DEST_DIR
}#{
CREW_PREFIX
}
/bin/"
system
"ln -s
#{
CREW_LIB_PREFIX
}
/nodebrew/current/bin/npx
#{
CREW_DEST_DIR
}#{
CREW_PREFIX
}
/bin/"
system
"ln -s
#{
CREW_LIB_PREFIX
}
/nodebrew $HOME/.nodebrew"
puts
""
puts
"Please set PATH environment variable."
puts
"
\t
export PATH=$HOME/.nodebrew/current/bin:$PATH"
puts
""
puts
"To install the latest node, please execute:"
puts
"
\t
nodebrew install-binary latest"
puts
"
\t
nodebrew use latest"
puts
""
system
"ln -s
#{
CREW_LIB_PREFIX
}
/nodebrew
#{
CREW_DEST_DIR
}
/home/
#{
USER
}
/user/.nodebrew"
system
"ln -s
#{
CREW_LIB_PREFIX
}
/nodebrew /home/
#{
USER
}
/user/.nodebrew"
puts
puts
"Nodebrew completion support is available for the following shells:"
puts
"bash fish zsh"
puts
puts
"To add nodebrew completion for bash, execute the following:"
.
lightblue
puts
"echo '# nodebrew completion' >> ~/.bashrc"
.
lightblue
puts
"echo 'if [ -f
#{
CREW_LIB_PREFIX
}
/nodebrew/completions/bash/nodebrew-completion ]; then' >> ~/.bashrc"
.
lightblue
puts
"echo ' source
#{
CREW_LIB_PREFIX
}
/nodebrew/completions/bash/nodebrew-completion' >> ~/.bashrc"
.
lightblue
puts
"echo 'fi' >> ~/.bashrc"
.
lightblue
puts
"source ~/.bashrc"
.
lightblue
puts
puts
"To install the latest node, please execute:"
.
lightblue
puts
"
\t
nodebrew install-binary latest"
.
lightblue
puts
"
\t
nodebrew use latest"
.
lightblue
puts
end
end
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