Rails keeps telling me that it’s not currently installed
If you’re running a rails command immediately after installing rails, you will need to restart your terminal before your commands will be recognized.
If you’re running a rails command immediately after installing rails, you will need to restart your terminal before your commands will be recognized.
When (non-null) output from a program doesn’t include a trailing newline, zsh adds that color-inverted % to indicate that and moves to the next line before printing the prompt; it’s generally more convenient than bash’s behavior, just starting the command prompt where the output ended.
As mentioned in comments to Mark Adelsberger’s answer, this was a default behavior change introduced in Git 2.16. You can turn paged output for git branch back off by default with the pager.branch config setting: git config –global pager.branch false
Extending your PATH with: export PATH=/usr/local/share/npm/bin:$PATH isn’t a terrible idea. Having said that, you shouldn’t have to do it. Run this: npm config get prefix The default on OS X is /usr/local, which means that npm will symlink binaries into /usr/local/bin, which should already be on your PATH (especially if you’re using Homebrew). So: npm … Read more
How to add a progress bar to a shell script?
You need to add it to your ~/.profile or ~/.bashrc file. export PATH=”$PATH:/path/to/dir” Depending on what you’re doing, you also may want to symlink to binaries: cd /usr/bin sudo ln -s /path/to/binary binary-name Note that this will not automatically update your path for the remainder of the session. To do this, you should run: source … Read more