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
b861a5ce
Commit
b861a5ce
authored
Nov 29, 2014
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deprecating _append_path and create _prepend_path
parent
73459aeb
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
50 additions
and
32 deletions
+50
-32
functions/_append_path.fish
functions/_append_path.fish
+4
-0
functions/_prepend_path.fish
functions/_prepend_path.fish
+14
-0
oh-my-fish.fish
oh-my-fish.fish
+6
-6
plugins/android-sdk/android-sdk.load
plugins/android-sdk/android-sdk.load
+4
-4
plugins/ccache/ccache.load
plugins/ccache/ccache.load
+2
-2
plugins/gem/gem.load
plugins/gem/gem.load
+1
-1
plugins/gvm/gvm.load
plugins/gvm/gvm.load
+2
-2
plugins/ndenv/ndenv.load
plugins/ndenv/ndenv.load
+4
-4
plugins/node/node.load
plugins/node/node.load
+1
-1
plugins/nodenv/nodenv.load
plugins/nodenv/nodenv.load
+2
-2
plugins/plenv/plenv.load
plugins/plenv/plenv.load
+2
-2
plugins/pyenv/pyenv.load
plugins/pyenv/pyenv.load
+4
-4
plugins/rbenv/rbenv.load
plugins/rbenv/rbenv.load
+4
-4
No files found.
functions/_append_path.fish
View file @
b861a5ce
# Appends the path to the specified path list. If no list specified,
# defaults to $PATH
function _append_path
set_color red
echo '_append_path function deprecated. Rename to _prepend_path.'
set_color normal
set -l path PATH
if test (echo $argv | wc -w) -eq 2
...
...
functions/_prepend_path.fish
0 → 100644
View file @
b861a5ce
# Prepends the path to the specified path list. If no list specified, defaults to $PATH
function _prepend_path
set -l path PATH
if test (echo $argv | wc -w) -eq 2
set path $argv[2]
end
if test -d $argv[1]
if not contains $argv[1] $$path
set $path $argv[1] $$path
end
end
end
oh-my-fish.fish
View file @
b861a5ce
...
...
@@ -6,16 +6,16 @@ function _fish_add_plugin
set -l plugin $argv[1]
set -l plugin_path "plugins/$plugin"
_
ap
pend_path $fish_path/$plugin_path fish_function_path
_
ap
pend_path $fish_custom/$plugin_path fish_function_path
_
pre
pend_path $fish_path/$plugin_path fish_function_path
_
pre
pend_path $fish_custom/$plugin_path fish_function_path
end
function _fish_add_completion
set -l plugin $argv[1]
set -l completion_path "plugins/$plugin/completions"
_
ap
pend_path $fish_path/$completion_path fish_complete_path
_
ap
pend_path $fish_custom/$completion_path fish_complete_path
_
pre
pend_path $fish_path/$completion_path fish_complete_path
_
pre
pend_path $fish_custom/$completion_path fish_complete_path
end
function _fish_source_plugin_load_file
...
...
@@ -32,8 +32,8 @@ function _fish_source_plugin_load_file
end
function _fish_load_theme
_
ap
pend_path $fish_path/themes/$fish_theme fish_function_path
_
ap
pend_path $fish_custom/themes/$fish_theme fish_function_path
_
pre
pend_path $fish_path/themes/$fish_theme fish_function_path
_
pre
pend_path $fish_custom/themes/$fish_theme fish_function_path
end
###
...
...
plugins/android-sdk/android-sdk.load
View file @
b861a5ce
if test -n "$ANDROID_SDK_ROOT"
_
ap
pend_path $ANDROID_SDK_ROOT/tools
_
ap
pend_path $ANDROID_SDK_ROOT/platform-tools
_
pre
pend_path $ANDROID_SDK_ROOT/tools
_
pre
pend_path $ANDROID_SDK_ROOT/platform-tools
else
_
ap
pend_path /opt/android-sdk/tools
_
ap
pend_path /opt/android-sdk/platform-tools
_
pre
pend_path /opt/android-sdk/tools
_
pre
pend_path /opt/android-sdk/platform-tools
end
plugins/ccache/ccache.load
View file @
b861a5ce
...
...
@@ -3,7 +3,7 @@
set -gx USE_CCACHE 1
if test -n "$CCACHE_ROOT"
_
ap
pend_path $CCACHE_ROOT
_
pre
pend_path $CCACHE_ROOT
else
_
ap
pend_path /usr/lib/ccache/bin
_
pre
pend_path /usr/lib/ccache/bin
end
plugins/gem/gem.load
View file @
b861a5ce
if test -n "$GEM_ROOT"
set -gx GEM_HOME $GEM_ROOT
_
ap
pend_path $GEM_ROOT/bin
_
pre
pend_path $GEM_ROOT/bin
end
plugins/gvm/gvm.load
View file @
b861a5ce
for gvm_path in (find $HOME/.gvm/*/current/bin -maxdepth 0)
_
ap
pend_path $gvm_path
_
pre
pend_path $gvm_path
end
plugins/ndenv/ndenv.load
View file @
b861a5ce
if test -n "$NDENV_ROOT"
_
ap
pend_path $NDENV_ROOT/bin
_
ap
pend_path $NDENV_ROOT/shims
_
pre
pend_path $NDENV_ROOT/bin
_
pre
pend_path $NDENV_ROOT/shims
else
_
ap
pend_path $HOME/.ndenv/bin
_
ap
pend_path $HOME/.ndenv/shims
_
pre
pend_path $HOME/.ndenv/bin
_
pre
pend_path $HOME/.ndenv/shims
end
plugins/node/node.load
View file @
b861a5ce
### Main program
_
ap
pend_path /usr/local/share/npm/bin
_
pre
pend_path /usr/local/share/npm/bin
set PATH ./node_modules/.bin $PATH
plugins/nodenv/nodenv.load
View file @
b861a5ce
if test -n "$NODENV_ROOT"
_
ap
pend_path $NODENV_ROOT/bin
_
pre
pend_path $NODENV_ROOT/bin
else
_
ap
pend_path $HOME/.nodenv/bin
_
pre
pend_path $HOME/.nodenv/bin
end
status --is-interactive; and source (nodenv init - | psub)
plugins/plenv/plenv.load
View file @
b861a5ce
_
ap
pend_path $HOME/.plenv/bin
_
ap
pend_path $HOME/.plenv/shims
_
pre
pend_path $HOME/.plenv/bin
_
pre
pend_path $HOME/.plenv/shims
plugins/pyenv/pyenv.load
View file @
b861a5ce
if test -n "$PYENV_ROOT"
_
ap
pend_path $PYENV_ROOT/bin
_
ap
pend_path $PYENV_ROOT/shims
_
pre
pend_path $PYENV_ROOT/bin
_
pre
pend_path $PYENV_ROOT/shims
else
_
ap
pend_path $HOME/.pyenv/bin
_
ap
pend_path $HOME/.pyenv/shims
_
pre
pend_path $HOME/.pyenv/bin
_
pre
pend_path $HOME/.pyenv/shims
end
plugins/rbenv/rbenv.load
View file @
b861a5ce
if test -n "$RBENV_ROOT"
_
ap
pend_path $RBENV_ROOT/bin
_
ap
pend_path $RBENV_ROOT/shims
_
pre
pend_path $RBENV_ROOT/bin
_
pre
pend_path $RBENV_ROOT/shims
else
_
ap
pend_path $HOME/.rbenv/bin
_
ap
pend_path $HOME/.rbenv/shims
_
pre
pend_path $HOME/.rbenv/bin
_
pre
pend_path $HOME/.rbenv/shims
end
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