File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ has () {
2+ command -v " $1 " > /dev/null 2>&1
3+ }
4+
15install_prelude () {
26 printf " Cloning Emacs Prelude's GitHub repository...\n$RESET "
37 if [ x$PRELUDE_VERBOSE != x ]
157161
158162# ## Check dependencies
159163printf " $CYAN Checking to see if git is installed... $RESET "
160- if hash git 2>& -
164+ if has git
161165then
162166 printf " $GREEN found.$RESET \n"
163167else
166170fi ;
167171
168172printf " $CYAN Checking to see if aspell is installed... "
169- if hash aspell 2>& -
173+ if has aspell
170174then
171175 printf " $GREEN found.$RESET \n"
172176else
221225
222226if [ -z " $PRELUDE_SKIP_BC " ];
223227then
224- if which emacs > /dev/null 2>&1
228+ if has emacs
225229 then
226230 printf " Byte-compiling Prelude...\n"
227231 if [ x$PRELUDE_VERBOSE != x ]
You can’t perform that action at this time.
0 commit comments