new Plugin and Theme functions
parent
6a3c7a3f1f
commit
e2d9ad8ff4
@ -0,0 +1,9 @@
|
||||
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
|
@ -0,0 +1,9 @@
|
||||
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
|
@ -1,16 +1,13 @@
|
||||
# Path to your 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)
|
||||
#set fish_custom $HOME/dotfiles/oh-my-fish
|
||||
|
||||
# Load oh-my-fish configuration.
|
||||
. $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'
|
||||
|
Loading…
Reference in New Issue