Minor edits

This commit is contained in:
Ilan Cosman 2020-09-07 12:00:54 -07:00
parent 5b3c25ffd8
commit edb8b28468
9 changed files with 27 additions and 27 deletions

View File

@ -9,9 +9,8 @@
#### Motivation and Context
<!-- Why is this change required? What problem does it solve? -->
<!--- Please link to an open issue. -->
Closes #
Closes # <!--- Please link to an open issue. -->
#### Screenshots (if appropriate)
@ -20,8 +19,8 @@ Closes #
<!-- Please describe how you tested your changes. -->
<!-- If you have not tested your changes on both OSes, someone else can help you out. -->
- [ ] I have tested using **MacOS**.
- [ ] I have tested using **Linux**.
- [ ] I have tested using **MacOS**.
#### Checklist

View File

@ -81,10 +81,10 @@ For example Tide might:
- Make small non-backwards compatible changes in a minor version bump
- Not bump the patch version number for ultra minor fixes
[code of conduct]: CODE_OF_CONDUCT.md
[fishtape]: https://github.com/jorgebucaran/fishtape
[`fish --no-execute`]: https://fishshell.com/docs/current/cmds/fish.html
[`fish_indent`]: https://fishshell.com/docs/current/cmds/fish_indent.html
[code of conduct]: CODE_OF_CONDUCT.md
[fishtape]: https://github.com/jorgebucaran/fishtape
[markdownlint]: https://github.com/DavidAnson/markdownlint
[prettier]: https://github.com/prettier/prettier
[reference style]: https://www.markdownguide.org/basic-syntax/#reference-style-links

View File

@ -145,18 +145,18 @@ Open each file and click "Install". This will make the `MesloLGS NF` font availa
[ci_badge]: https://github.com/IlanCosman/tide/workflows/CI/badge.svg
[configuration_wizard]: https://raw.githubusercontent.com/IlanCosman/tide-resources/main/animations/configuration_wizard.gif
[contributing guide]: CONTRIBUTING.md
[fish]: https://fishshell.com/
[fish_version_badge]: https://img.shields.io/badge/fish-3.1.0%2B-blue
[fish]: https://fishshell.com/
[git]: https://git-scm.com/
[license]: LICENSE.md
[items]: https://github.com/IlanCosman/tide/wiki/Items
[license_badge]: https://img.shields.io/github/license/IlanCosman/tide
[meslolgs nf bold.ttf]: https://raw.githubusercontent.com/IlanCosman/tide-resources/main/fonts/mesloLGS_NF_bold.ttf
[license]: LICENSE.md
[meslolgs nf bold italic.ttf]: https://raw.githubusercontent.com/IlanCosman/tide-resources/main/fonts/mesloLGS_NF_bold_italic.ttf
[meslolgs nf bold.ttf]: https://raw.githubusercontent.com/IlanCosman/tide-resources/main/fonts/mesloLGS_NF_bold.ttf
[meslolgs nf italic.ttf]: https://raw.githubusercontent.com/IlanCosman/tide-resources/main/fonts/mesloLGS_NF_italic.ttf
[meslolgs nf regular.ttf]: https://raw.githubusercontent.com/IlanCosman/tide-resources/main/fonts/mesloLGS_NF_regular.ttf
[nerd fonts]: https://github.com/ryanoasis/nerd-fonts
[powerlevel10k]: https://github.com/romkatv/powerlevel10k/
[items]: https://github.com/IlanCosman/tide/wiki/Items
[pure]: https://github.com/rafaelrinaldi/pure
[spacefish]: https://github.com/matchai/spacefish
[starship]: https://github.com/starship/starship

View File

@ -1,7 +1,7 @@
_tide_count_left_prompt_height
_tide_detect_os
_tide_git_prompt_set_vars
_tide_pwd
_tide_detect_os
_tide_pwd

View File

@ -5,9 +5,9 @@ function _tide_item_virtual_env
set_color $tide_virtual_env_color
if test "$tide_virtual_env_display_mode" = 'projectName'
printf '%s' {$tide_virtual_env_icon}' ' $splitVirtualEnv[-2]
printf '%s' $tide_virtual_env_icon' ' $splitVirtualEnv[-2]
else if test "$tide_virtual_env_display_mode" = 'venvName'
printf '%s' {$tide_virtual_env_icon}' ' $splitVirtualEnv[-1]
printf '%s' $tide_virtual_env_icon' ' $splitVirtualEnv[-1]
end
end
end

View File

@ -1,5 +1,5 @@
function _tide_right_prompt
set -l splitText (_tide_fetch_right_prompt_items | string split '@NEWLINE@')
set -l splitText (_tide_fetch_right_prompt_items)
set -l printAtEndedRightPromptHeight (count $splitText)
if test "$tide_right_prompt_frame_enabled" = 'true'
@ -105,10 +105,6 @@ function _tide_fetch_right_prompt_items
end
end
function fish_right_prompt
printf '%s' $_tide_fish_right_prompt_display
end
function _tide_print_at_end -a text
set -l startLocation (math $COLUMNS -(_tide_decolor $text | string length))
_tide_cursor_right $startLocation

View File

@ -13,4 +13,8 @@ function fish_prompt --description 'Write out the prompt'
_tide_right_prompt
_tide_left_prompt
end
function fish_right_prompt
printf '%s' $_tide_fish_right_prompt_display
end

View File

@ -1,5 +1,5 @@
function _fake_tide_right_prompt
set -l splitText (_tide_fetch_right_prompt_items | string split '@NEWLINE@')
set -l splitText (_tide_fetch_right_prompt_items)
set -l printAtEndedRightPromptHeight (count $splitText)
if test "$fake_tide_right_prompt_frame_enabled" = 'true'

View File

@ -64,18 +64,19 @@ end
function _set_immutables
set -U _tide_var_immutable_list
_set_immutable _tide_color_dark_blue 0087AF
_set_immutable _tide_color_green 5FD700
_set_immutable _tide_color_light_blue 00AFFF
_set_immutable _tide_color_normal (set_color normal)
_set_immutable _tide_dir "$__fish_config_dir/tide_theme"
_set_immutable _tide_file_list (string replace "$tempDir/" '' $tempDir/{completions/*, conf.d/*, functions/*})
_set_immutable _tide_version 2.3.0
_set_immutable _tide_dir "$__fish_config_dir/tide_theme"
# --------------Colors--------------
_set_immutable _tide_color_green 5FD700
_set_immutable _tide_color_light_blue 00AFFF
_set_immutable _tide_color_dark_blue 0087AF
_set_immutable _tide_color_normal (set_color normal)
_set_immutable VIRTUAL_ENV_DISABLE_PROMPT true
_set_immutable NVM_DIR $HOME/.nvm
_set_immutable VIRTUAL_ENV_DISABLE_PROMPT true
end
function _set_immutable -a var_name