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
f37d55ad
Commit
f37d55ad
authored
Aug 03, 2014
by
Joseph Tannhuber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made toggle functions available in VISUAL mode
parent
beb7a538
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
themes/budspencer/README.md
themes/budspencer/README.md
+2
-2
themes/budspencer/fish_right_prompt.fish
themes/budspencer/fish_right_prompt.fish
+2
-0
No files found.
themes/budspencer/README.md
View file @
f37d55ad
...
@@ -19,7 +19,7 @@ Translation of zsh's prezto [budspencer theme][budspencer]
...
@@ -19,7 +19,7 @@ Translation of zsh's prezto [budspencer theme][budspencer]
-
Last command's duration time
-
Last command's duration time
-
Git status
-
Git status
*
style can be toggled in NORMAL mode with
`,,`
between
*
style can be toggled in NORMAL
and in VISUAL
mode with
`,,`
between
-
`symbols`
(shows git status symbols, see below)
-
`symbols`
(shows git status symbols, see below)
-
`counts`
(shows amount of files that are affected)
-
`counts`
(shows amount of files that are affected)
*
symbols:
*
symbols:
...
@@ -33,7 +33,7 @@ Translation of zsh's prezto [budspencer theme][budspencer]
...
@@ -33,7 +33,7 @@ Translation of zsh's prezto [budspencer theme][budspencer]
-
●: there are untracked files
-
●: there are untracked files
-
✭: there are stashed commits
-
✭: there are stashed commits
-
Present working directory
-
Present working directory
*
style can be toggled in NORMAL mode with space bar
*
style can be toggled in NORMAL
and in VISUAL
mode with space bar
*
styles implemented:
*
styles implemented:
-
`short`
(show truncated path)
-
`short`
(show truncated path)
-
`long`
(show full path)
-
`long`
(show full path)
...
...
themes/budspencer/fish_right_prompt.fish
View file @
f37d55ad
...
@@ -35,6 +35,7 @@ function fish_git_toggle_cm --description "Toggles style of git segment, press ,
...
@@ -35,6 +35,7 @@ function fish_git_toggle_cm --description "Toggles style of git segment, press ,
commandline -f repaint
commandline -f repaint
end
end
bind -M default ',,' fish_git_toggle_cm
bind -M default ',,' fish_git_toggle_cm
bind -M visual ',,' fish_git_toggle_cm
if set -q -x $PWDSTYLE
if set -q -x $PWDSTYLE
set -x PWDSTYLE short long none
set -x PWDSTYLE short long none
...
@@ -50,6 +51,7 @@ function fish_pwd_toggle_cm --description "Toggles style of pwd segment, press s
...
@@ -50,6 +51,7 @@ function fish_pwd_toggle_cm --description "Toggles style of pwd segment, press s
end
end
end
end
bind -M default ' ' fish_pwd_toggle_cm
bind -M default ' ' fish_pwd_toggle_cm
bind -M visual ' ' fish_pwd_toggle_cm
function fish_cmd_duration_cm -d "Displays the elapsed time of last command"
function fish_cmd_duration_cm -d "Displays the elapsed time of last command"
if test (count $CMD_DURATION) -gt 0
if test (count $CMD_DURATION) -gt 0
...
...
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