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
b36bc03e
Commit
b36bc03e
authored
Sep 05, 2015
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove global OSTYPE variable.
parent
2ac89b5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
init.fish
init.fish
+0
-2
pkg/omf/omf.fish
pkg/omf/omf.fish
+2
-1
No files found.
init.fish
View file @
b36bc03e
...
@@ -26,8 +26,6 @@ else
...
@@ -26,8 +26,6 @@ else
set -gx ORIGINAL_PATH $PATH
set -gx ORIGINAL_PATH $PATH
end
end
set -q OSTYPE; or set -g OSTYPE (uname)
# Save the head of function path and autoload core functions
# Save the head of function path and autoload core functions
set -l user_function_path $fish_function_path[1]
set -l user_function_path $fish_function_path[1]
set fish_function_path[1] $OMF_PATH/lib
set fish_function_path[1] $OMF_PATH/lib
...
...
pkg/omf/omf.fish
View file @
b36bc03e
...
@@ -97,9 +97,10 @@ function omf -d "Oh My Fish"
...
@@ -97,9 +97,10 @@ function omf -d "Oh My Fish"
case "t" "theme"
case "t" "theme"
if test (count $argv) -eq 1
if test (count $argv) -eq 1
set -l ostype (uname)
set -l theme (cat $OMF_CONFIG/theme)
set -l theme (cat $OMF_CONFIG/theme)
set -l regex "[[:<:]]($theme)[[:>:]]"
set -l regex "[[:<:]]($theme)[[:>:]]"
test "$
OSTYPE
" != "Darwin"; and set regex "\b($theme)\b"
test "$
ostype
" != "Darwin"; and set regex "\b($theme)\b"
omf.list_themes | column | sed -E "s/$regex/"(omf::em)"\1"(omf::off)"/"
omf.list_themes | column | sed -E "s/$regex/"(omf::em)"\1"(omf::off)"/"
omf::off
omf::off
...
...
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