Skip to content

Commit

Permalink
fix(bash): get terminal with from COLUMNS
Browse files Browse the repository at this point in the history
resolves #5090
  • Loading branch information
JanDeDobbeleer committed Jun 15, 2024
1 parent 1cb6a3c commit 1cafd6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shell/scripts/omp.bash
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function _omp_hook() {
set_poshcontext
_set_posh_cursor_position

PS1="$(::OMP:: print primary --config="$POSH_THEME" --shell=bash --shell-version="$BASH_VERSION" --status="$ret" --pipestatus="${pipeStatus[*]}" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count" --no-status="$no_exit_code" | tr -d '\0')"
PS1="$(::OMP:: print primary --config="$POSH_THEME" --shell=bash --shell-version="$BASH_VERSION" --status="$ret" --pipestatus="${pipeStatus[*]}" --execution-time="$omp_elapsed" --stack-count="$omp_stack_count" --no-status="$no_exit_code" --terminal-width="$COLUMNS" | tr -d '\0')"
return $ret
}

Expand Down

0 comments on commit 1cafd6a

Please sign in to comment.