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
7599899f
Commit
7599899f
authored
Aug 18, 2017
by
Ed Reel
Committed by
Kazushi (Jam) Marukawa
Aug 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PATH to ~/.bashrc
parent
fb1e4b7a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
packages/nodebrew.rb
packages/nodebrew.rb
+6
-3
No files found.
packages/nodebrew.rb
View file @
7599899f
...
...
@@ -13,14 +13,14 @@ class Nodebrew < Package
system
"mkdir -p
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/nodebrew"
system
"NODEBREW_ROOT=
#{
CREW_DEST_DIR
}#{
CREW_LIB_PREFIX
}
/nodebrew perl nodebrew setup > /dev/null"
system
"mkdir -p
#{
CREW_DEST_DIR
}
/$HOME"
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
#{
CREW_DEST_DIR
}
/
home/
#{
USER
}
/user
/.nodebrew"
system
"ln -s
#{
CREW_LIB_PREFIX
}
/nodebrew
/home/
#{
USER
}
/user
/.nodebrew"
system
"ln -s
#{
CREW_LIB_PREFIX
}
/nodebrew
#{
CREW_DEST_DIR
}
/
$HOME
/.nodebrew"
system
"ln -s
#{
CREW_LIB_PREFIX
}
/nodebrew
$HOME
/.nodebrew"
puts
puts
"Nodebrew completion support is available for the following shells:"
puts
"bash fish zsh"
...
...
@@ -32,6 +32,9 @@ class Nodebrew < Package
puts
"echo 'fi' >> ~/.bashrc"
.
lightblue
puts
"source ~/.bashrc"
.
lightblue
puts
puts
"To complete the installation, execute the following:"
.
lightblue
puts
"echo 'export PATH=
\$
HOME/.nodebrew/current/bin:
\$
PATH' >> ~/.bashrc && 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
...
...
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