From 2a86d21ed804c1005b2d9ca88979d7eb4940404b Mon Sep 17 00:00:00 2001 From: Pablo Santiago Blum de Aguiar Date: Fri, 6 Aug 2021 20:29:24 +0200 Subject: [PATCH] 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 --- fish_prompt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 9859460..8ab85a2 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -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