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
1dc0c0ec
Commit
1dc0c0ec
authored
Sep 01, 2015
by
Bruno
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #579 from fish-shell/default-theme
Make `default` theme the default theme for omf.
parents
0e035c0a
7dad9174
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
bin/install
bin/install
+2
-2
pkg/omf/cli/omf.remove_package.fish
pkg/omf/cli/omf.remove_package.fish
+3
-3
pkg/omf/util/omf.util_valid_package.fish
pkg/omf/util/omf.util_valid_package.fish
+1
-0
No files found.
bin/install
View file @
1dc0c0ec
...
...
@@ -99,8 +99,8 @@ omf_install() {
if
[
!
-d
"
${
OMF_CONFIG
}
"
]
;
then
echo
"Writing Oh My Fish configuration →
${
OMF_CONFIG
}
"
mkdir
-p
"
${
OMF_CONFIG
}
"
t
ouch
"
${
OMF_CONFIG
}
/them
e"
t
ouch
"
${
OMF_CONFIG
}
/bundl
e"
t
est
-f
"
${
OMF_CONFIG
}
/bundle"
||
echo
"theme default"
>
"
${
OMF_CONFIG
}
/bundl
e"
t
est
-f
"
${
OMF_CONFIG
}
/theme"
||
echo
default
>
"
${
OMF_CONFIG
}
/them
e"
test
-f
"
${
OMF_CONFIG
}
/revision"
||
echo
${
git_rev
}
>
"
${
OMF_CONFIG
}
/revision"
else
fish
-c
"omf install"
...
...
pkg/omf/cli/omf.remove_package.fish
View file @
1dc0c0ec
...
...
@@ -27,8 +27,8 @@ function omf.remove_package
set -l remove_status 1
if not omf.util_valid_package $pkg
if test $pkg = "omf"
echo (omf::err)"You can't remove `
omf
`"(omf::off) 1^&2
if test $pkg = "omf"
-o $pkg = "default"
echo (omf::err)"You can't remove `
$pkg
`"(omf::off) 1^&2
else
echo (omf::err)"$pkg is not a valid package/theme name"(omf::off) 1^&2
end
...
...
@@ -49,7 +49,7 @@ function omf.remove_package
not test -d $path; and continue
if test $pkg = (cat $OMF_CONFIG/theme)
echo
""
> $OMF_CONFIG/theme
echo
default
> $OMF_CONFIG/theme
end
_remove_from_bundle "theme" $pkg
...
...
pkg/omf/util/omf.util_valid_package.fish
View file @
1dc0c0ec
function omf.util_valid_package -a package
test (echo "$package" | tr "[:upper:]" "[:lower:]") = "omf"; and return 10
test (echo "$package" | tr "[:upper:]" "[:lower:]") = "default"; and return 10
switch $package
case {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}\*
switch $package
...
...
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