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
c855e002
Commit
c855e002
authored
Aug 27, 2015
by
Jorge Bucaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix omf new theme and remove default theme
parent
8850c842
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
10 deletions
+5
-10
.gitignore
.gitignore
+1
-1
bin/install
bin/install
+0
-1
pkg/omf/cli/omf_list_themes.fish
pkg/omf/cli/omf_list_themes.fish
+1
-1
pkg/omf/cli/omf_new.fish
pkg/omf/cli/omf_new.fish
+1
-1
pkg/omf/cli/omf_remove_package.fish
pkg/omf/cli/omf_remove_package.fish
+1
-5
pkg/omf/omf.fish
pkg/omf/omf.fish
+1
-1
No files found.
.gitignore
View file @
c855e002
...
...
@@ -2,7 +2,7 @@ pkg/**
!pkg/omf
!pkg/omf/**
themes/
themes/
**
.DS_Store
**/.DS_Store
bin/install
View file @
c855e002
...
...
@@ -103,7 +103,6 @@ omf_install() {
if
[
!
-d
"
${
OMF_CONFIG
}
"
]
;
then
echo
"Writing Oh My Fish configuration →
${
OMF_CONFIG
}
"
mkdir
-p
"
${
OMF_CONFIG
}
"
test
-f
"
${
OMF_CONFIG
}
/theme"
||
echo
default
>
"
${
OMF_CONFIG
}
/theme"
test
-f
"
${
OMF_CONFIG
}
/revision"
||
echo
${
git_rev
}
>
"
${
OMF_CONFIG
}
/revision"
fi
}
...
...
pkg/omf/cli/omf_list_themes.fish
View file @
c855e002
function omf_list_themes
set -l seen ""
for theme in (basename $OMF_PATH/db/themes/*) \
(basename {$OMF_PATH,$OMF_CUSTOM}/themes/*)
(basename {$OMF_PATH,$OMF_CUSTOM}/themes/*)
contains $theme $seen; or echo $theme
set seen $seen $theme
end
...
...
pkg/omf/cli/omf_new.fish
View file @
c855e002
...
...
@@ -23,7 +23,7 @@ function omf_new -a option name
set -l user (git config user.name)
test -z "$user"; and set user "{{USERNAME}}"
omf_new_from_template "$OMF_PATH/pkg/
wa
/templates/$option" \
omf_new_from_template "$OMF_PATH/pkg/
omf
/templates/$option" \
$github $user $name
echo (omf::em)"Switched to $dir"(omf::off)
...
...
pkg/omf/cli/omf_remove_package.fish
View file @
c855e002
...
...
@@ -13,12 +13,8 @@ function omf_remove_package
emit uninstall_$pkg
rm -rf $OMF_PATH/pkg/$pkg
else if test -d $OMF_PATH/themes/$pkg
if test $pkg = default
echo (omf::err)"You can't remove the default theme"(omf::off) 1^&2
return $OMF_INVALID_ARG
end
if test $pkg = (cat $OMF_CONFIG/theme)
omf_theme "default"
echo "" > $OMF_CONFIG/theme
end
rm -rf $OMF_PATH/themes/$pkg
end
...
...
pkg/omf/omf.fish
View file @
c855e002
...
...
@@ -76,7 +76,7 @@ function omf -d "Oh My Fish"
return $OMF_INVALID_ARG
end
case "r" "rm" "remove" "uninstall"
case "r" "r
em" "r
m" "remove" "uninstall"
if test (count $argv) -ne 2
echo (omf::err)"Invalid number of arguments"(omf::off) 1^&2
echo "Usage: $_ "(omf::em)"$argv[1]"(omf::off)" <[package|theme] name>" 1^&2
...
...
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