mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
Provided copy_prompts to prepare fish_config to pull in custom themes provided by oh-my-fish
This commit is contained in:
parent
86e0cfbc43
commit
8adbde8507
8
copy_prompts.fish
Executable file
8
copy_prompts.fish
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/local/bin/fish
|
||||
# This script will create a symbolic link between all themes included in oh-my-fish to the sample prompts
|
||||
# This will allow the user to choose an oh-my-fish theme while using the stock fish_config web application
|
||||
for themePath in (ls $fish_path/themes/*/fish_prompt.fish)
|
||||
set themeName (echo $themePath | sed "s/.*themes\///;s/\/fish_prompt.fish//")
|
||||
echo "Adding $themeName to the sample prompts"
|
||||
ln -sf $themePath $__fish_datadir/tools/web_config/sample_prompts/$themeName.fish
|
||||
end
|
Loading…
Reference in New Issue
Block a user