mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-02-12 20:31:00 +01:00
Compare commits
2 Commits
881c8b78d3
...
0354add542
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0354add542 | ||
|
|
40c2a72e03 |
@@ -18,10 +18,10 @@ function omz_history {
|
|||||||
print -u2 History file deleted.
|
print -u2 History file deleted.
|
||||||
elif [[ $# -eq 0 ]]; then
|
elif [[ $# -eq 0 ]]; then
|
||||||
# if no arguments provided, show full history starting from 1
|
# if no arguments provided, show full history starting from 1
|
||||||
builtin fc $stamp -l 1
|
builtin fc "${stamp[@]}" -l 1
|
||||||
else
|
else
|
||||||
# otherwise, run `fc -l` with a custom format
|
# otherwise, run `fc -l` with a custom format
|
||||||
builtin fc $stamp -l "$@"
|
builtin fc "${stamp[@]}" -l "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ function _prompt_char() {
|
|||||||
# This theme works with both the "dark" and "light" variants of the
|
# This theme works with both the "dark" and "light" variants of the
|
||||||
# Solarized color schema. Set the SOLARIZED_THEME variable to one of
|
# Solarized color schema. Set the SOLARIZED_THEME variable to one of
|
||||||
# these two values to choose. If you don't specify, we'll assume you're
|
# these two values to choose. If you don't specify, we'll assume you're
|
||||||
# using the "dark" variant.
|
# using neither variant.
|
||||||
|
|
||||||
case ${SOLARIZED_THEME:-dark} in
|
case ${SOLARIZED_THEME:-dark} in
|
||||||
light) bkg=white;;
|
light) bkg=white;;
|
||||||
*) bkg=black;;
|
*) bkg=default;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{blue}%}"
|
ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{blue}%}"
|
||||||
|
|||||||
Reference in New Issue
Block a user