From 10713d55450e5ba45c5222e149bc32d23ccee0e2 Mon Sep 17 00:00:00 2001 From: Ira Abramov Date: Wed, 19 May 2021 19:17:58 +0300 Subject: [PATCH] Get rid of shellcheck disable=SC2046 --- clean_files.txt | 1 + plugins/available/thefuck.plugin.bash | 4 ++-- themes/powerline-plain/powerline-plain.base.bash | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clean_files.txt b/clean_files.txt index a7e70eb9..edbe1df4 100644 --- a/clean_files.txt +++ b/clean_files.txt @@ -84,6 +84,7 @@ plugins/available/goenv.plugin.bash plugins/available/history-search.plugin.bash plugins/available/history-substring-search.plugin.bash plugins/available/history.plugin.bash +plugins/available/thefuck.plugin.bash plugins/available/xterm.plugin.bash # tests diff --git a/plugins/available/thefuck.plugin.bash b/plugins/available/thefuck.plugin.bash index 242a77df..a985837f 100644 --- a/plugins/available/thefuck.plugin.bash +++ b/plugins/available/thefuck.plugin.bash @@ -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 diff --git a/themes/powerline-plain/powerline-plain.base.bash b/themes/powerline-plain/powerline-plain.base.bash index 3326414d..0226639c 100644 --- a/themes/powerline-plain/powerline-plain.base.bash +++ b/themes/powerline-plain/powerline-plain.base.bash @@ -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