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

Replace disabled stderr redirection char ^ with 2>
main
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
1 changed files with 2 additions and 2 deletions

View File

@ -26,11 +26,11 @@ function __slavic_current_folder
end
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
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
function __slavic_rainbow