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
62928f9a
Commit
62928f9a
authored
Nov 20, 2013
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allowing z plugin to use a custom path
parent
81c57572
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
plugins/z/z.fish
plugins/z/z.fish
+1
-1
plugins/z/z.load
plugins/z/z.load
+5
-1
No files found.
plugins/z/z.fish
View file @
62928f9a
function z
cd (bash -c 'source
/usr/local/etc/profile.d/z.sh
; _z $0; echo $PWD' $argv)
cd (bash -c 'source
$Z_SCRIPT_PATH
; _z $0; echo $PWD' $argv)
end
plugins/z/z.load
View file @
62928f9a
if test -z "$Z_SCRIPT_PATH"
set -x Z_SCRIPT_PATH /usr/local/etc/profile.d/z.sh
end
function __check_z --on-variable PWD --description 'Setup z on directory change'
status --is-command-substitution; and return
bash -c "source
/usr/local/etc/profile.d/z.sh
; _z --add `pwd -P`"
bash -c "source
$Z_SCRIPT_PATH
; _z --add `pwd -P`"
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