Skip to content

Commit 99c680b

Browse files
authored
Merge pull request #2303 from Bash-it/ira/fix-trigger-happiness
2 parents 99b876c + a7c308a commit 99c680b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

clean_files.txt

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ themes/powerline-naked
7777
themes/pure
7878
themes/purity
7979
themes/rjorgenson
80+
themes/robbyrussell
8081

8182
# vendor init files
8283
#

completion/available/aliases.completion.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ about-plugin 'Automatic completion of aliases'
99

1010
# Automatically add completion for all aliases to commands having completion functions
1111
function _bash-it-component-completion-callback-on-init-aliases() {
12-
local namespace="alias_completion"
12+
local aliasCommandFunction namespace="alias_completion"
1313
local tmp_file completion_loader alias_name line completions chars
1414
local alias_arg_words new_completion compl_func compl_wrapper alias_defn
1515

themes/powerline-naked/powerline-naked.base.bash

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# shellcheck shell=bash
2-
# shellcheck disable=SC2034 # Expected behavior for themes.
3-
# shellcheck source-path=SCRIPTDIR/../powerline
2+
# shellcheck disable=SC2034,SC1091 # Expected behavior for themes.
43
source "${BASH_IT?}/themes/powerline/powerline.base.bash"
54

65
function __powerline_left_segment {
7-
local OLD_IFS="${IFS}"
8-
IFS="|"
9-
local params=("$1")
6+
local OLD_IFS="${IFS}" params=()
7+
# shellcheck disable=SC2206 # not needed because we are splitting on "|"
8+
IFS="|" params=($1)
109
IFS="${OLD_IFS}"
1110
local separator=""
1211
local pad_before_segment=" "

themes/robbyrussell/robbyrussell.theme.bash

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/usr/bin/env bash
2-
1+
# shellcheck shell=bash
2+
# shellcheck disable=SC2034,SC2154
33
SCM_THEME_PROMPT_DIRTY=" ${bold_yellow}"
44
SCM_THEME_PROMPT_CLEAN=" ${bold_green}"
55
SCM_THEME_PROMPT_PREFIX=" ${bold_blue}scm:("
@@ -22,7 +22,7 @@ function git_prompt_info() {
2222
}
2323

2424
function prompt_command() {
25-
PS1="$(conda_or_venv_prompt)${bold_green}${bold_cyan}\W${reset_color}$(scm_prompt_info)${normal} "
25+
PS1="$(conda_or_venv_prompt)${bold_green}${bold_cyan}\W${reset_color}$(scm_prompt_info)${normal} "
2626
}
2727

2828
PROMPT_COMMAND=prompt_command

0 commit comments

Comments
 (0)