Merge pull request #5 from scorphus/stderr-done-right

Replace disabled stderr redirection char ^ with 2>
This commit is contained in:
Matej yangwao 2021-08-07 10:10:54 +02:00 committed by GitHub
commit ec39d2e244
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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