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
dbecd88f
Commit
dbecd88f
authored
Nov 03, 2014
by
Bruno
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #246 from steeeve/fix-missing-arg-for-root-directory
Stops theme breaking in root directory
parents
1068df1b
9feaaa8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
themes/toaster/fish_prompt.fish
themes/toaster/fish_prompt.fish
+8
-2
No files found.
themes/toaster/fish_prompt.fish
View file @
dbecd88f
...
@@ -10,11 +10,17 @@ set __toaster_color_lilac AE81FF
...
@@ -10,11 +10,17 @@ set __toaster_color_lilac AE81FF
function __toaster_color_echo
function __toaster_color_echo
set_color $argv[1]
set_color $argv[1]
echo -n $argv[2]
if test (count $argv) -eq 2
echo -n $argv[2]
end
end
end
function __toaster_current_folder
function __toaster_current_folder
echo -n $PWD | grep -o -E '[^\/]+$'
if test $PWD = '/'
echo -n '/'
else
echo -n $PWD | grep -o -E '[^\/]+$'
end
end
end
function __toaster_git_status_codes
function __toaster_git_status_codes
...
...
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