Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
bcd032de
Commit
bcd032de
authored
May 31, 2015
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using events for easier verbosity handling
parent
2930c812
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
plugins/omf/omf.packages.fish
plugins/omf/omf.packages.fish
+5
-1
plugins/omf/omf.packages.install.fish
plugins/omf/omf.packages.install.fish
+2
-2
plugins/omf/omf.packages.update.fish
plugins/omf/omf.packages.update.fish
+10
-14
No files found.
plugins/omf/omf.packages.fish
View file @
bcd032de
...
...
@@ -52,10 +52,14 @@ function omf.packages --argument-names options -d 'Manage all plugins and themes
end
end
function omf.packages.report.
started -e omf_package_installing -e omf_package_updat
ing
function omf.packages.report.
installing -e omf_package_install
ing
omf.log -n white "Installing $argv... "
end
function omf.packages.report.updating -e omf_package_updating
omf.log -n white "Updating $argv... "
end
function omf.packages.report.finished -e omf_package_installed -e omf_package_updated
omf.log green "√"
set __omf_packages_modified (expr $__omf_packages_modified + 1)
...
...
plugins/omf/omf.packages.install.fish
View file @
bcd032de
...
...
@@ -12,7 +12,7 @@ function omf.packages.install --argument-names type name -d "Install a plugin or
switch $type
case '--plugin'
if [ -e $fish_path/plugins/$name -o -e $fish_custom/plugins/$name ]
#
echo "$plugin is already installed. Skipping."
#
Plugin is already installed. Skipping.
else
emit omf_package_installing $name
git clone "https://github.com/oh-my-fish/plugin-$name" $fish_path/plugins/$name ^ /dev/null
...
...
@@ -20,7 +20,7 @@ function omf.packages.install --argument-names type name -d "Install a plugin or
end
case '--theme'
if [ -e $fish_path/themes/$name -o -e $fish_custom/themes/$name ]
#
echo "$fish_theme is already installed. Skipping."
#
Theme is already installed. Skipping.
else
emit omf_package_installing $name
git clone "https://github.com/oh-my-fish/theme-$name" $fish_path/themes/$name ^ /dev/null
...
...
plugins/omf/omf.packages.update.fish
View file @
bcd032de
...
...
@@ -14,34 +14,30 @@ function omf.packages.update --argument-names type name -d "Update a plugin or t
switch $type
case '--plugin'
if [ -e $fish_path/plugins/$name -a -e $fish_path/plugins/$name/.git ]
omf.log -n white "Updating $name "
emit omf_package_updating $name
echo (cd $fish_path/plugins/$name; and git pull --rebase > /dev/null) >/dev/null
omf.log green "√"
emit omf_package_updated
emit omf_package_updated $name
else
if [ -e $fish_custom/plugins/$name -a -e $fish_custom/plugins/$name/.git ]
omf.log -n white "Updating $name "
emit omf_package_updating $name
echo (cd $fish_custom/plugins/$name; and git pull --rebase > /dev/null) >/dev/null
omf.log green "√"
emit omf_package_updated
emit omf_package_updated $name
else
#
echo "Plugin is not installed or not a git repo. Skipping."
#
Plugin is not installed or not a git repo. Skipping.
end
end
case '--theme'
if [ -e $fish_path/themes/$name -a -e $fish_path/themes/$name/.git ]
omf.log -n white "Updating $name "
emit omf_package_updating $name
echo (cd $fish_path/themes/$name; and git pull --rebase > /dev/null) >/dev/null
omf.log green "√"
emit omf_package_updated
emit omf_package_updated $name
else
if [ -e $fish_custom/themes/$name -a -e $fish_custom/themes/$name/.git ]
omf.log -n white "Updating $name "
emit omf_package_updating $name
echo (cd $fish_custom/themes/$name; and git pull --rebase > /dev/null) >/dev/null
omf.log green "√"
emit omf_package_updated
emit omf_package_updated $name
else
#
echo "Theme is not installed or not a git repo. Skipping."
#
Theme is not installed or not a git repo. Skipping.
end
end
case '*'
...
...
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