diff options
author | Roger Gonzalez <roger@rogs.me> | 2020-07-17 09:19:06 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2020-07-17 09:19:06 -0300 |
commit | 9fe9310ccf4971f0d1976f9bdaafd04a68ea314b (patch) | |
tree | ff1d5d677d5b3c33ac7eb6252029f2a9d165d9b3 /.config/fisher/github.com/matchai/spacefish/functions/__sf_section_user.fish | |
parent | 743caecfc68bb6d28f8de2e80bce671e42601c6a (diff) |
Deleted fisher stuff
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/functions/__sf_section_user.fish')
-rw-r--r-- | .config/fisher/github.com/matchai/spacefish/functions/__sf_section_user.fish | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_user.fish b/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_user.fish deleted file mode 100644 index b481995f..00000000 --- a/.config/fisher/github.com/matchai/spacefish/functions/__sf_section_user.fish +++ /dev/null @@ -1,49 +0,0 @@ -# -# Username -# - -function __sf_section_user -d "Display the username" - # ------------------------------------------------------------------------------ - # Configuration - # ------------------------------------------------------------------------------ - - # -------------------------------------------------------------------------- - # | SPACEFISH_USER_SHOW | show username on local | show username on remote | - # |---------------------+------------------------+-------------------------| - # | false | never | never | - # | always | always | always | - # | true | if needed | always | - # | needed | if needed | if needed | - # -------------------------------------------------------------------------- - - __sf_util_set_default SPACEFISH_USER_SHOW true - __sf_util_set_default SPACEFISH_USER_PREFIX "with " - __sf_util_set_default SPACEFISH_USER_SUFFIX $SPACEFISH_PROMPT_DEFAULT_SUFFIX - __sf_util_set_default SPACEFISH_USER_COLOR yellow - __sf_util_set_default SPACEFISH_USER_COLOR_ROOT red - - # ------------------------------------------------------------------------------ - # Section - # ------------------------------------------------------------------------------ - - [ $SPACEFISH_USER_SHOW = false ]; and return - - if test "$SPACEFISH_USER_SHOW" = "always" \ - -o "$LOGNAME" != "$USER" \ - -o "$UID" = "0" \ - -o \( "$SPACEFISH_USER_SHOW" = "true" -a -n "$SSH_CONNECTION" \) - - set -l user_color - if test "$USER" = "root" - set user_color $SPACEFISH_USER_COLOR_ROOT - else - set user_color $SPACEFISH_USER_COLOR - end - - __sf_lib_section \ - $user_color \ - $SPACEFISH_USER_PREFIX \ - $USER \ - $SPACEFISH_USER_SUFFIX - end -end |