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
92587579
Commit
92587579
authored
Sep 17, 2015
by
jeremiejig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install script using git -C $OMF_PATH
parent
961d051c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
bin/install
bin/install
+4
-7
No files found.
bin/install
View file @
92587579
...
...
@@ -58,19 +58,16 @@ omf_install() {
die
"Could not clone the repository →
${
OMF_PATH
}
:
${
OMF_REPO_BRANCH
}
"
fi
pushd
${
OMF_PATH
}
>
/dev/null 2>&1
local
git_rev
=
$(
git rev-parse HEAD
)
>
/dev/null 2>&1
local
git_upstream
=
$(
git config remote.upstream.url
)
local
git_rev
=
$(
git
-C
${
OMF_PATH
}
rev-parse HEAD
)
>
/dev/null 2>&1
local
git_upstream
=
$(
git
-C
${
OMF_PATH
}
config remote.upstream.url
)
if
[
-z
"
${
git_upstream
}
"
]
;
then
git remote add upstream
${
git_uri
}
git
-C
${
OMF_PATH
}
remote add upstream
${
git_uri
}
else
git remote set-url upstream
${
git_uri
}
git
-C
${
OMF_PATH
}
remote set-url upstream
${
git_uri
}
fi
echo
"Oh My Fish revision id →
${
git_rev
}
"
popd
>
/dev/null 2>&1
test
-z
${
FISH_CONFIG
+_
}
&&
FISH_CONFIG
=
"
${
XDG_CONFIG_HOME
}
/fish"
local
fish_config_file
=
"
${
FISH_CONFIG
}
/config.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