From 4cdb69a94e1241373fe8fd4c42f6c36f1d8dcf8b Mon Sep 17 00:00:00 2001 From: Sebastian Gniazdowski Date: Wed, 25 Jul 2018 08:10:13 +0200 Subject: [PATCH] -git.ch: For `checkout' subcommand: input string can be a path --- chroma/-git.ch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chroma/-git.ch b/chroma/-git.ch index cd2f5e3..eff470b 100644 --- a/chroma/-git.ch +++ b/chroma/-git.ch @@ -92,6 +92,8 @@ local -a __lines_list if (( __idx1 == 2 )); then if git rev-parse --verify --quiet "$__wrd" >/dev/null 2>&1; then __style=${FAST_THEME_NAME}builtin + elif [[ "${FAST_HIGHLIGHT[chroma-git-subcommand]}" = "checkout" && -e "$__wrd" ]]; then + __style=${FAST_THEME_NAME}path else __style=${FAST_THEME_NAME}unknown-token fi