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
e2d9ad8f
Commit
e2d9ad8f
authored
May 26, 2015
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new Plugin and Theme functions
parent
6a3c7a3f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
8 deletions
+35
-8
functions/Plugin.fish
functions/Plugin.fish
+9
-0
functions/Theme.fish
functions/Theme.fish
+9
-0
oh-my-fish.fish
oh-my-fish.fish
+12
-0
templates/config.fish
templates/config.fish
+5
-8
No files found.
functions/Plugin.fish
0 → 100644
View file @
e2d9ad8f
function Plugin --argument-names name
if [ -e $fish_path/plugins/$name -o -e $fish_custom/plugins/$name ]
import plugins/$name
else
set_color red
echo "Plugin '$name' is not installed. Run 'fish install' to download and install it."
set_color normal
end
end
functions/Theme.fish
0 → 100644
View file @
e2d9ad8f
function Theme --argument-names name
if [ -e $fish_path/themes/$name -o -e $fish_custom/themes/$name ]
import themes/$name
else
set_color red
echo "Theme '$name' is not installed. Run 'fish install' to download and install it."
set_color normal
end
end
oh-my-fish.fish
View file @
e2d9ad8f
...
@@ -9,6 +9,18 @@ if not contains $fish_path/functions/ $fish_function_path
...
@@ -9,6 +9,18 @@ if not contains $fish_path/functions/ $fish_function_path
set fish_function_path $fish_path/functions/ $fish_function_path
set fish_function_path $fish_path/functions/ $fish_function_path
end
end
if set -q fish_plugins
set_color red
echo '$fish_plugins usage has been deprecated. Please see https://asciinema.org/a/20802.'
set_color normal
end
if set -q fish_theme
set_color red
echo '$fish_theme usage has been deprecated. Please see https://asciinema.org/a/20802.'
set_color normal
end
# Add imported plugins, completions and themes. Customize imported
# Add imported plugins, completions and themes. Customize imported
# commands via the $fish_path/custom directory, for example create
# commands via the $fish_path/custom directory, for example create
# a directory under $fish_path/custom/themes with the same name as
# a directory under $fish_path/custom/themes with the same name as
...
...
templates/config.fish
View file @
e2d9ad8f
# Path to your oh-my-fish.
# Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
set fish_path $HOME/.oh-my-fish
# Theme
set fish_theme robbyrussell
# All built-in plugins can be found at ~/.oh-my-fish/plugins/
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/
# Enable plugins by adding their name separated by a space to the line below.
set fish_plugins theme
# Path to your custom folder (default path is ~/.oh-my-fish/custom)
# Path to your custom folder (default path is ~/.oh-my-fish/custom)
#set fish_custom $HOME/dotfiles/oh-my-fish
#set fish_custom $HOME/dotfiles/oh-my-fish
# Load oh-my-fish configuration.
# Load oh-my-fish configuration.
. $fish_path/oh-my-fish.fish
. $fish_path/oh-my-fish.fish
# Custom plugins and themes may be added to ~/.oh-my-fish/custom
# Plugins and themes can be found at https://github.com/oh-my-fish/
Theme 'robbyrussell'
Plugin 'theme'
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