mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
common-aliases: check if $BROWSER is defined on browser aliases
This commit is contained in:
parent
0d87d9908f
commit
4774ddf59a
1 changed files with 4 additions and 2 deletions
|
|
@ -89,8 +89,10 @@ fi
|
|||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue