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
4d00195f
Commit
4d00195f
authored
Mar 03, 2013
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install tool
parent
fd952eeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
tools/install.sh
tools/install.sh
+52
-0
No files found.
tools/install.sh
0 → 100755
View file @
4d00195f
#!/bin/bash
if
[
-d
~/.oh-my-fish
]
then
echo
-e
"
\0
33[0;33mYou already have Oh My Fish installed.
\0
33[0m You'll need to remove ~/.oh-my-fish if you want to install"
exit
fi
echo
-e
"
\0
33[0;34mCloning Oh My Fish...
\0
33[0m"
hash
git
>
/dev/null
&&
/usr/bin/env git clone git://github.com/bpinto/oh-my-fish.git ~/.oh-my-fish
||
{
echo
-e
"git not installed"
exit
}
echo
-e
"
\0
33[0;34mLooking for an existing fish config...
\0
33[0m"
if
[
-f
~/.config/fish/config.fish
]
||
[
-h
~/.config/fish/config.fish
]
then
echo
-e
"
\0
33[0;33mFound ~/.config/fish/config.fish.
\0
33[0m
\0
33[0;32mBacking up to ~/.config/fish/config.orig
\0
33[0m"
;
mv
~/.config/fish/config.
{
fish,orig
}
fi
echo
-e
"
\0
33[0;34mUsing the Oh My Fish template file and adding it to ~/.config/fish/config.fish
\0
33[0m"
cp
~/.oh-my-fish/templates/config.fish ~/.config/fish/config.fish
echo
-e
"
\0
33[0;32m"
' _ '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' | | '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' ___ | |__ _ __ ___ _ _ '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' / _ \| _ \ | _ ` _ \| | | | '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' | (_) | | | | | | | | | | |_| | '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' \___/|_| |_| |_| |_| |_|\__, | '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' __/ | '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' |___/ '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' ___ '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' ___======____=---=) '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' /T \_--===) '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' [ \ (0) \~ \_-==) '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' \ / )J~~ \-=) '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' \\___/ )JJ~~~ \) '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' \_____/JJ~~~~~ \ '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' / \ , \J~~~~~ \ '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' (-\)\=|\\\~~~~ L__ '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' (\\) (\\\)_ \==__ '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' \V \\\) ===_____ \\\\\\ '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' \V) \_) \\\\JJ\J\) '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' /J\JT\JJJJ) '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' (JJJ| \UUU) '
"
\0
33[0m"
echo
-e
"
\0
33[0;32m"
' (UU) '
"
\0
33[0m"
echo
-e
"
\n\n
\0
33[0;32m....is now installed.
\0
33[0m"
/usr/bin/env 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