Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
dc59c661
Commit
dc59c661
authored
Sep 04, 2020
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common-aliases: lazily assign $BROWSER, $EDITOR and $XIVIEWER in ext aliases
Fixes #9212
parent
50dc4ab3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common-aliases.plugin.zsh
plugins/common-aliases/common-aliases.plugin.zsh
+3
-3
No files found.
plugins/common-aliases/common-aliases.plugin.zsh
View file @
dc59c661
...
...
@@ -55,15 +55,15 @@ if is-at-least 4.2.0; then
# open browser on urls
if
[[
-n
"
$BROWSER
"
]]
;
then
_browser_fts
=(
htm html de org net com at cx
nl
se dk
)
for
ft
in
$_browser_fts
;
do
alias
-s
$ft
=
$BROWSER
;
done
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
for
ft
in
$_editor_fts
;
do
alias
-s
$ft
=
'$EDITOR'
;
done
if
[[
-n
"
$XIVIEWER
"
]]
;
then
_image_fts
=(
jpg jpeg png gif mng tiff tif xpm
)
for
ft
in
$_image_fts
;
do
alias
-s
$ft
=
$XIVIEWER
;
done
for
ft
in
$_image_fts
;
do
alias
-s
$ft
=
'$XIVIEWER'
;
done
fi
_media_fts
=(
ape avi flv m4a mkv mov mp3 mpeg mpg ogg ogm
rm
wav webm
)
...
...
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