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
cb26c2f6
Commit
cb26c2f6
authored
Nov 02, 2016
by
Marc Cornellà
Browse files
common-aliases: minor style fixes
parent
fc4e0cd7
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/common-aliases/common-aliases.plugin.zsh
View file @
cb26c2f6
...
@@ -56,17 +56,17 @@ if is-at-least 4.2.0; then
...
@@ -56,17 +56,17 @@ if is-at-least 4.2.0; then
# open browser on urls
# open browser on urls
if
[[
-n
"
$BROWSER
"
]]
;
then
if
[[
-n
"
$BROWSER
"
]]
;
then
_browser_fts
=(
htm html de org net com at cx
nl
se dk dk
)
_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
for
ft
in
$_browser_fts
;
do
alias
-s
$ft
=
$BROWSER
;
done
fi
fi
_editor_fts
=(
cpp cxx cc c hh h inl asc txt TXT tex
)
_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
_image_fts
=(
jpg jpeg png gif mng tiff tif xpm
)
_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
_media_fts
=(
ape avi flv m4a mkv mov mp3 mpeg mpg ogg ogm
rm
wav webm
)
_media_fts
=(
ape avi flv m4a mkv mov mp3 mpeg mpg ogg ogm
rm
wav webm
)
for
ft
in
$_media_fts
;
do
alias
-s
$ft
=
mplayer
;
done
for
ft
in
$_media_fts
;
do
alias
-s
$ft
=
mplayer
;
done
#read documents
#read documents
alias
-s
pdf
=
acroread
alias
-s
pdf
=
acroread
...
...
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