Created
September 9, 2019 05:05
-
-
Save marschhuynh/a7f81f1310d6e6f8f965160ff6329a12 to your computer and use it in GitHub Desktop.
spacefish config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_prompt | |
# Store the exit code of the last command | |
set -g sf_exit_code $status | |
set -g SPACEFISH_VERSION 2.4.0 | |
# ------------------------------------------------------------------------------ | |
# Configuration | |
# ------------------------------------------------------------------------------ | |
__sf_util_set_default SPACEFISH_PROMPT_ADD_NEWLINE true | |
__sf_util_set_default SPACEFISH_CHAR_SYMBOL "➤ " | |
# __sf_util_set_default SPACEFISH_CHAR_SYMBOL "⇒" | |
__sf_util_set_default SPACEFISH_PROMPT_FIRST_PREFIX_SHOW false | |
__sf_util_set_default SPACEFISH_PROMPT_PREFIXES_SHOW true | |
__sf_util_set_default SPACEFISH_PROMPT_SUFFIXES_SHOW true | |
__sf_util_set_default SPACEFISH_PROMPT_DEFAULT_PREFIX "via " | |
__sf_util_set_default SPACEFISH_PROMPT_DEFAULT_SUFFIX " " | |
__sf_util_set_default SPACEFISH_PROMPT_ORDER time user dir host git package node golang docker aws venv kubecontext exec_time line_sep battery vi_mode jobs exit_code char | |
__sf_util_set_default SPACEFISH_DOCKER_SHOW false | |
__sf_util_set_default SPACEFISH_KUBECONTEXT_SHOW false | |
# ------------------------------------------------------------------------------ | |
# Sections | |
# ------------------------------------------------------------------------------ | |
# Keep track of whether the prompt has already been opened | |
set -g sf_prompt_opened $SPACEFISH_PROMPT_FIRST_PREFIX_SHOW | |
if test "$SPACEFISH_PROMPT_ADD_NEWLINE" = "true" | |
echo | |
end | |
for i in $SPACEFISH_PROMPT_ORDER | |
eval __sf_section_$i | |
end | |
set_color normal | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment