Minor edits

This commit is contained in:
Ilan Cosman 2022-01-25 11:16:29 -08:00
parent ab1c6f4a07
commit af7dc0e412
3 changed files with 2 additions and 5 deletions

View File

@ -2,8 +2,6 @@
🌊 Thank you for contributing to Tide! 🌊
Please note that this project is released with a [Code of Conduct][]. By contributing to this project you agree to abide by its terms.
If you have any questions that aren't addressed in this document, please don't hesitate to open an issue!
## Code Conventions

View File

@ -8,7 +8,7 @@ set -l pwd_icon $tide_pwd_icon'\ '
eval "function _tide_pwd
if set -l split_pwd (string replace -r '^$HOME' '~' \$PWD | string split /)
test -w \$PWD && set -f icon $pwd_icon || set -f icon $unwritable_icon
test -w . && set -f icon $pwd_icon || set -f icon $unwritable_icon
else
set -f icon $home_icon
end
@ -35,7 +35,7 @@ eval "function _tide_pwd
while string match -qr \"(?<trunc>\$trunc.)\" \$dir_section && test (count \$parent_dir/\$trunc*/) != 1
end
test -n \"\$trunc\" && set split_output[\$i] \"$color_truncated\$trunc$reset_to_color_dirs\" &&
string join / \$split_output | string length -V | read -g pwd_length
string join / \$split_output | string length -V | read pwd_length
end
end

View File

@ -24,7 +24,6 @@ if contains newline $_tide_left_items # two line prompt initialization
set_color $tide_prompt_color_frame_and_connection -b normal | read -l prompt_and_frame_color
set -l column_offset 5
test "$tide_left_prompt_frame_enabled" = true &&
set -l top_left_frame "$prompt_and_frame_color╭─" &&
set -l bot_left_frame "$prompt_and_frame_color╰─" &&