Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quiet warnings if programs are not installed #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions init/50_node.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Load nave- and npm-related functions.
source $DOTFILES/source/50_node.sh init

[[ ! "$(type -P npm)" ]] && e_error "npm needs to be installed." && return 1

# Install latest stable Node.js, set as default, install global npm modules.
nave_install stable
2 changes: 1 addition & 1 deletion link/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -384,4 +384,4 @@ let g:gruvbox_italic = 1
let g:gruvbox_italicize_comments = 1
let g:gruvbox_contrast_dark = 'medium'
set background=dark
colorscheme gruvbox
:silent! colorscheme gruvbox
2 changes: 1 addition & 1 deletion source/10_powerline.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if [[ "$(which powerline-daemon)" ]]; then
if [[ "$(which powerline-daemon 2>/dev/null)" ]]; then
# Powerline stuff.
export POWERLINE_PREFIX="$(python -c "import powerline; print powerline.__path__[0]")"

Expand Down
2 changes: 1 addition & 1 deletion source/50_misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ fi
export ANSIBLE_NOCOWS=1

# "fuck"
if [[ "$(which thefuck)" ]]; then
if [[ "$(which thefuck 2>/dev/null)" ]]; then
eval $(thefuck --alias)
fi