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
9aae2897
Commit
9aae2897
authored
Aug 08, 2016
by
Stephen M. Coakley
Committed by
GitHub
Aug 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~ expansion and always setup config in multiple installs (#381)
parent
9fa56cf1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
README.md
README.md
+1
-1
bin/install
bin/install
+10
-5
No files found.
README.md
View file @
9aae2897
...
@@ -26,7 +26,7 @@ This will download the installer script and start the installation. Alternativel
...
@@ -26,7 +26,7 @@ This will download the installer script and start the installation. Alternativel
```
fish
```
fish
curl -L http://get.oh-my.fish > install
curl -L http://get.oh-my.fish > install
fish install --path=
$HOME/.local/share/omf --config=$HOME
/.config/omf
fish install --path=
~/.local/share/omf --config=~
/.config/omf
```
```
You can also install Oh My Fish with Git or with an offline source tarball downloaded from the
[
releases page
][
releases
]
:
You can also install Oh My Fish with Git or with an offline source tarball downloaded from the
[
releases page
][
releases
]
:
...
...
bin/install
View file @
9aae2897
...
@@ -44,7 +44,7 @@ Options:
...
@@ -44,7 +44,7 @@ Options:
return 0
return 0
case '--config=*'
case '--config=*'
echo "$argv[1]" | command cut -d= -f2 | read -g OMF_CONFIG
echo "$argv[1]" | command cut -d= -f2 |
command sed -e "s#~#$HOME#" |
read -g OMF_CONFIG
case --noninteractive
case --noninteractive
set -g NONINTERACTIVE
set -g NONINTERACTIVE
...
@@ -54,10 +54,10 @@ Options:
...
@@ -54,10 +54,10 @@ Options:
case '--offline=*'
case '--offline=*'
set -g OFFLINE
set -g OFFLINE
echo "$argv[1]" | command cut -d= -f2 | read -g OFFLINE_PATH
echo "$argv[1]" | command cut -d= -f2 |
command sed -e "s#~#$HOME#" |
read -g OFFLINE_PATH
case '--path=*'
case '--path=*'
echo "$argv[1]" | command cut -d= -f2 | read -g OMF_PATH
echo "$argv[1]" | command cut -d= -f2 |
command sed -e "s#~#$HOME#" |
read -g OMF_PATH
case --uninstall
case --uninstall
set -g UNINSTALL
set -g UNINSTALL
...
@@ -131,8 +131,9 @@ function install_omf
...
@@ -131,8 +131,9 @@ function install_omf
install_from_github
install_from_github
end
end
#
Bootstrap
step
#
Config
step
install_bootstrap
install_bootstrap
install_config
end
end
...
@@ -260,8 +261,12 @@ function install_bootstrap
...
@@ -260,8 +261,12 @@ function install_bootstrap
# Backup the user's theme settings. This can be removed when OMF no longer touches this file to switch themes.
# Backup the user's theme settings. This can be removed when OMF no longer touches this file to switch themes.
backup_file "$FISH_CONFIG/functions/fish_prompt.fish"
backup_file "$FISH_CONFIG/functions/fish_prompt.fish"
end
say "Building Oh My Fish configuration..."
# Sets up the configuration directory.
function install_config
say "Setting up Oh My Fish configuration..."
# Set up the Oh My Fish configuration directory.
# Set up the Oh My Fish configuration directory.
if not test -d "$OMF_CONFIG"
if not test -d "$OMF_CONFIG"
...
...
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