Skip to content

Commit

Permalink
Merge pull request #286 from himkt/zsh-config
Browse files Browse the repository at this point in the history
fix(zsh): stderr to /dev/null
  • Loading branch information
himkt authored Dec 30, 2024
2 parents 9789616 + b69a08e commit e6a659b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions zsh/config.d/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,8 @@ function current_timestamp () {
echo "[$fg_bold[green]$(date +'%H:%M:%S')$reset_color]"
}

function parse_git_branch() {
(git symbolic-ref -q HEAD || git name-rev --name-only --no-undefined --always HEAD) 2> /dev/null
}

function current_git_status () {
local git_branch="$(git rev-parse --abbrev-ref HEAD)"
local git_branch="$(git rev-parse --abbrev-ref HEAD 2>/dev/null)"
if [ -z "$git_branch" ]; then
return
fi
Expand Down

0 comments on commit e6a659b

Please sign in to comment.