Minor edits

This commit is contained in:
Ilan Cosman 2020-09-11 22:15:25 -07:00
parent 318bfeca54
commit 2d86c98542
4 changed files with 5 additions and 5 deletions

View File

@ -29,9 +29,9 @@ assignees: ""
- Operating System: <!-- e.g. Ubuntu 20.04 -->
- Output of `tide bug-report`: <!-- In the code block below -->
```console
```console
```
```
#### Additional context

View File

@ -1,4 +1,4 @@
function _tide_count_left_prompt_height --on-variable tide_left_prompt_items
set -l numberOfNewlines (count (string match --all 'newline' $tide_left_prompt_items))
set -l numberOfNewlines (string match --all 'newline' $tide_left_prompt_items | count)
set -g _tide_left_prompt_height (math 1+$numberOfNewlines)
end

View File

@ -47,7 +47,7 @@ function _tide_detect_os_linux_cases -a name
case '*'
return 1
end
return 0 # If we didn't run into the catch case '*', then return succesfull
return 0 # If we didn't run into the catch case '*' return succesfull
end
function _tide_detect_os_get_info -a file key

View File

@ -5,7 +5,7 @@ function _tide_item_nvm
if string match --quiet --regex "^$NVM_DIR.*" $nodePath # If node path begins with nvm directory
set_color $tide_nvm_color
printf '%s' $tide_nvm_icon' ' $nodeVersion
else if test -n "$tide_nvm_default_node" -a "$tide_nvm_default_node" != "$nodeVersion"
else if test -n "$tide_nvm_default_node" -a "$nodeVersion" != "$tide_nvm_default_node"
set_color $tide_nvm_color
printf '%s' $tide_nvm_icon' ' $nodeVersion
end