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
9092b8f6
Commit
9092b8f6
authored
Feb 15, 2015
by
Jorge Bucaran
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #377 from amio/edan-update
Improve Edan theme design & function naming.
parents
580f3e1d
f982470b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
themes/edan/README.md
themes/edan/README.md
+6
-2
themes/edan/edan-set-local.fish
themes/edan/edan-set-local.fish
+1
-1
themes/edan/edan-set-remote.fish
themes/edan/edan-set-remote.fish
+1
-1
themes/edan/fish_prompt.fish
themes/edan/fish_prompt.fish
+2
-2
No files found.
themes/edan/README.md
View file @
9092b8f6
...
...
@@ -2,13 +2,13 @@
Inspired by idan, a functional, uncluttered fish theme with usability perks for git users and python developers.


#### Characteristics
##### Left Prompt
*
User & host (
hidden by default, execute
`edan-remote`
to show,
`edan-local`
to hide
)
*
User & host (
Shown in "remote" mode, hidden by default. Execute
`edan-set-remote`
or
`edan-set-local`
to switch.
)
*
Current python virtualenv (if applicable)
*
Truncated CWD (just the current folder name)
*
Git branch and dirty state (if applicable)
...
...
@@ -17,3 +17,7 @@ Inspired by idan, a functional, uncluttered fish theme with usability perks for
*
Full CWD path
*
Last error code (if applicable)
#### Font
Check out
[
Anonymous Pro
](
http://www.marksimonson.com/fonts/view/anonymous-pro
)
.
themes/edan/edan-local.fish
→
themes/edan/edan-
set-
local.fish
View file @
9092b8f6
# Switch environment to "local" for edan.
function edan-local
function edan-
set-
local
set -U EDAN_HOST_TYPE "local"
end
themes/edan/edan-remote.fish
→
themes/edan/edan-
set-
remote.fish
View file @
9092b8f6
# Switch environment to "remote" for edan.
function edan-remote
function edan-
set-
remote
set -U EDAN_HOST_TYPE 'remote'
end
themes/edan/fish_prompt.fish
View file @
9092b8f6
...
...
@@ -19,7 +19,7 @@ function _user_host
else
echo -n (set_color -o blue)
end
echo -n
$USER°(hostname|cut -d . -f 1)
(set color normal)
echo -n
(hostname|cut -d . -f 1)ˇ$USER
(set color normal)
end
function fish_prompt
...
...
@@ -57,7 +57,7 @@ function fish_prompt
set -l git_branch '[' (_git_branch_name) ']'
if [ (_is_git_dirty) ]
set git_info $red $git_branch "
★
"
set git_info $red $git_branch "
×
"
else
set git_info $green $git_branch
end
...
...
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