Commit fc4e0cd7 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

common-aliases: check if $BROWSER is defined on browser aliases

parent d47a7221
......@@ -54,8 +54,10 @@ alias mv='mv -i'
# depends on the SUFFIX :)
if is-at-least 4.2.0; then
# open browser on urls
_browser_fts=(htm html de org net com at cx nl se dk dk)
for ft in $_browser_fts ; do alias -s $ft=$BROWSER ; done
if [[ -n "$BROWSER" ]]; then
_browser_fts=(htm html de org net com at cx nl se dk dk)
for ft in $_browser_fts ; do alias -s $ft=$BROWSER ; done
fi
_editor_fts=(cpp cxx cc c hh h inl asc txt TXT tex)
for ft in $_editor_fts ; do alias -s $ft=$EDITOR ; done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment