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
06aea3ad
Commit
06aea3ad
authored
Jun 29, 2016
by
Stephen M. Coakley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not touch the filesystem at all to switch theme
parent
8217eac3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
pkg/omf/functions/themes/omf.theme.set.fish
pkg/omf/functions/themes/omf.theme.set.fish
+2
-8
No files found.
pkg/omf/functions/themes/omf.theme.set.fish
View file @
06aea3ad
...
@@ -11,8 +11,6 @@ function omf.theme.set -a target_theme
...
@@ -11,8 +11,6 @@ function omf.theme.set -a target_theme
set -l prompt_filename "fish_prompt.fish"
set -l prompt_filename "fish_prompt.fish"
set -l user_functions_path (omf.xdg.config_home)/fish/functions
set -l user_functions_path (omf.xdg.config_home)/fish/functions
mkdir -p "$user_functions_path"
if not omf.check.fish_prompt
if not omf.check.fish_prompt
echo (omf::err)"Conflicting prompt setting."(omf::off)
echo (omf::err)"Conflicting prompt setting."(omf::off)
echo "Run "(omf::em)"omf doctor"(omf::off)" and fix issues before continuing."
echo "Run "(omf::em)"omf doctor"(omf::off)" and fix issues before continuing."
...
@@ -26,12 +24,8 @@ function omf.theme.set -a target_theme
...
@@ -26,12 +24,8 @@ function omf.theme.set -a target_theme
# Require new theme
# Require new theme
require --theme $target_theme
require --theme $target_theme
# Find target theme's fish_prompt and link to user function path
# Make sure prompts are reloaded
for path in {$OMF_CONFIG,$OMF_PATH}/themes/$target_theme/$prompt_filename
functions -e fish_prompt fish_right_prompt
if test -e $path
ln -sf $path $user_functions_path/$prompt_filename; and break
end
end
# If key bindings file found, reload fish key bindings
# If key bindings file found, reload fish key bindings
test (count {$OMF_CONFIG,$OMF_PATH}/key_binding?.fish) -gt 0
test (count {$OMF_CONFIG,$OMF_PATH}/key_binding?.fish) -gt 0
...
...
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