mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-10-16 11:40:46 +00:00
Compare commits
4 commits
827a086b37
...
27e5fcd1a9
Author | SHA1 | Date | |
---|---|---|---|
|
27e5fcd1a9 | ||
|
367e9381df | ||
|
f11cc8fea1 | ||
|
a0fd4f4fec |
3 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
certifi==2024.8.30
|
certifi==2024.8.30
|
||||||
charset-normalizer==3.3.2
|
charset-normalizer==3.3.2
|
||||||
idna==3.9
|
idna==3.10
|
||||||
PyYAML==6.0.2
|
PyYAML==6.0.2
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
semver==3.0.2
|
semver==3.0.2
|
||||||
|
|
|
@ -163,7 +163,7 @@ function git_current_branch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Outputs the name of the previously checked out branch
|
# Outputs the name of the previously checked out branch
|
||||||
# Usage example: git pull origin $(git_current_branch)
|
# Usage example: git pull origin $(git_previous_branch)
|
||||||
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch
|
# rev-parse --symbolic-full-name @{-1} only prints if it is a branch
|
||||||
function git_previous_branch() {
|
function git_previous_branch() {
|
||||||
local ref
|
local ref
|
||||||
|
|
|
@ -89,7 +89,7 @@ prompt_end() {
|
||||||
# Context: user@hostname (who am I and where am I)
|
# Context: user@hostname (who am I and where am I)
|
||||||
prompt_context() {
|
prompt_context() {
|
||||||
if [[ "$USERNAME" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
|
if [[ "$USERNAME" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
|
||||||
prompt_segment black default "%(!.%{%F{yellow}%}.)%n@%m"
|
prompt_segment black white "%(!.%{%F{yellow}%}.)%n@%m"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ prompt_status() {
|
||||||
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
|
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
|
||||||
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
|
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
|
||||||
|
|
||||||
[[ -n "$symbols" ]] && prompt_segment black default "$symbols"
|
[[ -n "$symbols" ]] && prompt_segment black white "$symbols"
|
||||||
}
|
}
|
||||||
|
|
||||||
#AWS Profile:
|
#AWS Profile:
|
||||||
|
|
Loading…
Reference in a new issue