Replace disabled stderr redirection char ^ with 2>

Since [Fish 3.3.0][1], redirection to standard error with the `^`
character has been disabled by default.

Ref [oh-my-fish/oh-my-fish#585][2]

[1]: https://github.com/fish-shell/fish-shell/blob/master/CHANGELOG.rst#deprecations-and-removed-features-1
[2]: https://github.com/oh-my-fish/oh-my-fish/issues/585
main
Pablo Santiago Blum de Aguiar 2021-08-06 20:29:24 +02:00
parent 868259ef13
commit 2a86d21ed8
1 changed files with 2 additions and 2 deletions

View File

@ -26,11 +26,11 @@ function __slavic_current_folder
end end
function __slavic_git_status_codes function __slavic_git_status_codes
echo (git status --porcelain ^/dev/null | sed -E 's/(^.{3}).*/\1/' | tr -d ' \n') echo (git status --porcelain 2>/dev/null | sed -E 's/(^.{3}).*/\1/' | tr -d ' \n')
end end
function __slavic_git_branch_name function __slavic_git_branch_name
echo (git rev-parse --abbrev-ref HEAD ^/dev/null) echo (git rev-parse --abbrev-ref HEAD 2>/dev/null)
end end
function __slavic_rainbow function __slavic_rainbow