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
4a250d79
Commit
4a250d79
authored
Jul 29, 2012
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lower case variable names for non-exported variables
parent
42fc751d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
oh-my-fish.fish
oh-my-fish.fish
+19
-19
templates/config.fish
templates/config.fish
+5
-5
No files found.
oh-my-fish.fish
View file @
4a250d79
...
@@ -6,12 +6,12 @@ function _fish_add_plugin
...
@@ -6,12 +6,12 @@ function _fish_add_plugin
set -l plugin $argv[1]
set -l plugin $argv[1]
set -l plugin_path "plugins/$plugin"
set -l plugin_path "plugins/$plugin"
if test -d $
FISH
/$plugin_path
if test -d $
fish_path
/$plugin_path
set fish_function_path $
FISH
/$plugin_path $fish_function_path
set fish_function_path $
fish_path
/$plugin_path $fish_function_path
end
end
if test -d $
FISH_CUSTOM
/$plugin_path
if test -d $
fish_custom
/$plugin_path
set fish_function_path $
FISH_CUSTOM
/$plugin_path $fish_function_path
set fish_function_path $
fish_custom
/$plugin_path $fish_function_path
end
end
end
end
...
@@ -19,12 +19,12 @@ function _fish_add_completion
...
@@ -19,12 +19,12 @@ function _fish_add_completion
set -l plugin $argv[1]
set -l plugin $argv[1]
set -l completion_path "plugins/$plugin/completions"
set -l completion_path "plugins/$plugin/completions"
if test -d $
FISH
/$completion_path
if test -d $
fish_path
/$completion_path
set fish_complete_path $
FISH
/$completion_path $fish_complete_path
set fish_complete_path $
fish_path
/$completion_path $fish_complete_path
end
end
if test -d $
FISH_CUSTOM
/$completion_path
if test -d $
fish_custom
/$completion_path
set fish_complete_path $
FISH_CUSTOM
/$completion_path $fish_complete_path
set fish_complete_path $
fish_custom
/$completion_path $fish_complete_path
end
end
end
end
...
@@ -32,12 +32,12 @@ function _fish_source_plugin_load_file
...
@@ -32,12 +32,12 @@ function _fish_source_plugin_load_file
set -l plugin $argv[1]
set -l plugin $argv[1]
set -l load_file_path "plugins/$plugin/$plugin.load.fish"
set -l load_file_path "plugins/$plugin/$plugin.load.fish"
if test -e $
FISH
/$load_file_path
if test -e $
fish_path
/$load_file_path
. $
FISH
/$load_file_path
. $
fish_path
/$load_file_path
end
end
if test -e $
FISH_CUSTOM
/$load_file_path
if test -e $
fish_custom
/$load_file_path
. $
FISH_CUSTOM
/$load_file_path
. $
fish_custom
/$load_file_path
end
end
end
end
...
@@ -45,10 +45,10 @@ end
...
@@ -45,10 +45,10 @@ end
# Configuration
# Configuration
###
###
# Set
FISH_CUSTOM
to the path where your custom config files
# Set
fish_custom
to the path where your custom config files
# and plugins exists, or else we will use the default custom.
# and plugins exists, or else we will use the default custom.
if not set -q
FISH_CUSTOM
if not set -q
fish_custom
set -g
FISH_CUSTOM $FISH
/custom
set -g
fish_custom $fish_path
/custom
end
end
# Extracting user's functions – will be added later.
# Extracting user's functions – will be added later.
...
@@ -56,20 +56,20 @@ set user_function_path $fish_function_path[1]
...
@@ -56,20 +56,20 @@ set user_function_path $fish_function_path[1]
set -e fish_function_path[1]
set -e fish_function_path[1]
# Add all functions
# Add all functions
set fish_function_path $
FISH
/functions/ $fish_function_path
set fish_function_path $
fish_path
/functions/ $fish_function_path
# Add all defined plugins
# Add all defined plugins
for plugin in $
FISH_PLUGINS
for plugin in $
fish_plugins
_fish_add_plugin $plugin
_fish_add_plugin $plugin
_fish_add_completion $plugin
_fish_add_completion $plugin
_fish_source_plugin_load_file $plugin
_fish_source_plugin_load_file $plugin
end
end
# Add user defined theme
# Add user defined theme
set fish_function_path $
FISH/themes/$FISH_THEME
$fish_function_path
set fish_function_path $
fish_path/themes/$fish_theme
$fish_function_path
# Source all files inside custom folder
# Source all files inside custom folder
for config_file in $
FISH_CUSTOM
/*.load.fish
for config_file in $
fish_custom
/*.load.fish
. $config_file
. $config_file
end
end
...
...
templates/config.fish
View file @
4a250d79
# Path to your oh-my-fish.
# Path to your oh-my-fish.
set
FISH
$HOME/.oh-my-fish
set
fish_path
$HOME/.oh-my-fish
# Theme
# Theme
set
FISH_THEME
robbyrussell
set
fish_theme
robbyrussell
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*)
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*)
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/
# Example format: set
FISH_PLUGINS
autojump git
# Example format: set
fish_plugins
autojump git
# Path to your custom folder (default path is $FISH/custom)
# Path to your custom folder (default path is $FISH/custom)
#set
FISH_CUSTOM
$HOME/dotfiles/oh-my-fish
#set
fish_custom
$HOME/dotfiles/oh-my-fish
# Load oh-my-fish cofiguration.
# Load oh-my-fish cofiguration.
. $
FISH
/oh-my-fish.fish
. $
fish_path
/oh-my-fish.fish
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