Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
fc4e0cd7
Commit
fc4e0cd7
authored
Nov 02, 2016
by
Marc Cornellà
Browse files
common-aliases: check if $BROWSER is defined on browser aliases
parent
d47a7221
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/common-aliases/common-aliases.plugin.zsh
View file @
fc4e0cd7
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment