Skip to content

Commit

Permalink
Get rid of shellcheck disable=SC2046
Browse files Browse the repository at this point in the history
  • Loading branch information
seefood committed May 19, 2021
1 parent f0908c8 commit e4a5948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/available/thefuck.plugin.bash
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# shellcheck shell=bash
cite about-plugin
about-plugin 'Initialization for fuck'

# https://github.com/nvbn/thefuck

if _command_exists thefuck; then
# shellcheck disable=SC2046
eval $(thefuck --alias)
eval "$(thefuck --alias)"
fi
3 changes: 1 addition & 2 deletions themes/powerline-plain/powerline-plain.base.bash
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ function __powerline_prompt_command {
[[ -n "${info}" ]] && __powerline_left_segment "${info}"
done

# shellcheck disable=SC2046
[[ "${last_status}" -ne 0 ]] && __powerline_left_segment $(__powerline_last_status_prompt ${last_status})
[[ "${last_status}" -ne 0 ]] && __powerline_left_segment "$(__powerline_last_status_prompt ${last_status})"

if [[ -n "${LEFT_PROMPT}" ]] && [[ "${POWERLINE_COMPACT_AFTER_LAST_SEGMENT}" -eq 0 ]]; then
__powerline_left_last_segment_padding
Expand Down

0 comments on commit e4a5948

Please sign in to comment.