Get rid of shellcheck disable=SC2046

pull/1970/head
Ira Abramov 2021-05-19 19:17:58 +03:00
parent f0908c875a
commit 10713d5545
3 changed files with 4 additions and 4 deletions

View File

@ -84,6 +84,7 @@ plugins/available/goenv.plugin.bash
plugins/available/history-search.plugin.bash plugins/available/history-search.plugin.bash
plugins/available/history-substring-search.plugin.bash plugins/available/history-substring-search.plugin.bash
plugins/available/history.plugin.bash plugins/available/history.plugin.bash
plugins/available/thefuck.plugin.bash
plugins/available/xterm.plugin.bash plugins/available/xterm.plugin.bash
# tests # tests

View File

@ -1,9 +1,9 @@
# shellcheck shell=bash
cite about-plugin cite about-plugin
about-plugin 'Initialization for fuck' about-plugin 'Initialization for fuck'
# https://github.com/nvbn/thefuck # https://github.com/nvbn/thefuck
if _command_exists thefuck; then if _command_exists thefuck; then
# shellcheck disable=SC2046 eval "$(thefuck --alias)"
eval $(thefuck --alias)
fi fi

View File

@ -44,8 +44,7 @@ function __powerline_prompt_command {
[[ -n "${info}" ]] && __powerline_left_segment "${info}" [[ -n "${info}" ]] && __powerline_left_segment "${info}"
done 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 if [[ -n "${LEFT_PROMPT}" ]] && [[ "${POWERLINE_COMPACT_AFTER_LAST_SEGMENT}" -eq 0 ]]; then
__powerline_left_last_segment_padding __powerline_left_last_segment_padding