Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hcana
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jlab
hallc
analyzer_software
hcana
Commits
c420edd5
Commit
c420edd5
authored
4 years ago
by
Stephen A. Wood
Committed by
Stephen Wood
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add setup script for fish shell
parent
3c8c7040
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!16
Merge in upstream changes and update CI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.fish
+37
-0
37 additions, 0 deletions
setup.fish
with
37 additions
and
0 deletions
setup.fish
0 → 100644
+
37
−
0
View file @
c420edd5
#!/usr/bin/fish
function update_path -d "Remove argv[2]argv[3] from argv[1] if argv[2], and prepend argv[4]"
# Assert that we got enough arguments
if test (count $argv) -ne 4
echo "update_path: needs 4 arguments but have " (count $argv)
return 1
end
set var $argv[1]
set newpath $argv[4]
for el in $$var
if test "$argv[2]" = ""; or not test "$el" = "$argv[2]$argv[3]"
set newpath $newpath $el
end
end
set -xg $var $newpath
end
if set -q HCANALYZER
set old_hcanalyzer $HCANALYZER
end
if set -q ANALYZER
set old_analyzer $ANALYZER
end
set -x HCANALYZER (realpath (dirname (status -f)))
set -x ANALYZER $HCANALYZER/podd
update_path LD_LIBRARY_PATH "$old_hcanalyzer" "" $HCANALYZER
update_path LD_LIBRARY_PATH "$old_analyzer" "$HCANALYZER" $ANALYZER
update_path DYLD_LIBRARY_PATH "$old_hcanalyzer" "" $HCANALYZER
update_path DYLD_LIBRARY_PATH "$old_analyzer" "$HCANALYZER" $ANALYZER
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment