Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
a9d57eb2
Unverified
Commit
a9d57eb2
authored
Dec 27, 2021
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: quote % in `box_name` prompt functions
parent
43be5ea3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
candy-kingdom.zsh-theme
themes/candy-kingdom.zsh-theme
+3
-1
fino-time.zsh-theme
themes/fino-time.zsh-theme
+3
-2
fino.zsh-theme
themes/fino.zsh-theme
+3
-1
No files found.
themes/candy-kingdom.zsh-theme
View file @
a9d57eb2
...
@@ -11,7 +11,9 @@ patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset
...
@@ -11,7 +11,9 @@ patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset
fi
fi
function box_name {
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-$HOST}
local box="${SHORT_HOST:-$HOST}"
[[ -f ~/.box-name ]] && box="$(< ~/.box-name)"
echo "${box:gs/%/%%}"
}
}
PROMPT='
PROMPT='
...
...
themes/fino-time.zsh-theme
View file @
a9d57eb2
...
@@ -21,10 +21,11 @@ function prompt_char {
...
@@ -21,10 +21,11 @@ function prompt_char {
}
}
function box_name {
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-$HOST}
local box="${SHORT_HOST:-$HOST}"
[[ -f ~/.box-name ]] && box="$(< ~/.box-name)"
echo "${box:gs/%/%%}"
}
}
PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}%~%{$reset_color%}\$(git_prompt_info)\$(ruby_prompt_info) %D - %*
PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}%~%{$reset_color%}\$(git_prompt_info)\$(ruby_prompt_info) %D - %*
╰─\$(virtualenv_info)\$(prompt_char) "
╰─\$(virtualenv_info)\$(prompt_char) "
...
...
themes/fino.zsh-theme
View file @
a9d57eb2
...
@@ -21,7 +21,9 @@ function prompt_char {
...
@@ -21,7 +21,9 @@ function prompt_char {
}
}
function box_name {
function box_name {
[ -f ~/.box-name ] && cat ~/.box-name || echo ${SHORT_HOST:-$HOST}
local box="${SHORT_HOST:-$HOST}"
[[ -f ~/.box-name ]] && box="$(< ~/.box-name)"
echo "${box:gs/%/%%}"
}
}
local ruby_env='$(ruby_prompt_info)'
local ruby_env='$(ruby_prompt_info)'
...
...
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