File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ _bash_it_ble_path=${XDG_DATA_HOME:-$HOME/.local/share}/blesh/ble.sh
11
11
if [[ -f $_bash_it_ble_path ]]; then
12
12
# shellcheck disable=1090
13
13
source " $_bash_it_ble_path " --attach=prompt
14
+ if _bash-it-component-item-is-enabled plugin fzf; then
15
+ ble-import -d integration/fzf-key-bindings
16
+ ble-import -d integration/fzf-completion
17
+ fi
14
18
else
15
19
_log_error " Could not find ble.sh in $_bash_it_ble_path "
16
20
_log_error " Please install using the following command:"
Original file line number Diff line number Diff line change 5
5
cite about-plugin
6
6
about-plugin ' load fzf, if you are using it'
7
7
8
- if [ -r ~ /.fzf.bash ]; then
9
- # shellcheck disable=SC1090
10
- source ~ /.fzf.bash
11
- elif [ -r " ${XDG_CONFIG_HOME:- $HOME / .config} " /fzf/fzf.bash ]; then
12
- # shellcheck disable=SC1091
13
- source " ${XDG_CONFIG_HOME:- $HOME / .config} " /fzf/fzf.bash
14
- fi
8
+ if ! _bash-it-component-item-is-enabled plugin blesh; then
9
+ if [ -r ~ /.fzf.bash ]; then
10
+ # shellcheck disable=SC1090
11
+ source ~ /.fzf.bash
12
+ elif [ -r " ${XDG_CONFIG_HOME:- $HOME / .config} " /fzf/fzf.bash ]; then
13
+ # shellcheck disable=SC1091
14
+ source " ${XDG_CONFIG_HOME:- $HOME / .config} " /fzf/fzf.bash
15
+ fi
16
+ fi # only sources the keybindings and integration if blesh is not integrated already
15
17
16
18
# No need to continue if the command is not present
17
19
_command_exists fzf || return
Original file line number Diff line number Diff line change 10
10
# truncating the history file early.
11
11
12
12
# "Numeric values less than zero result in every command being saved on the history list (there is no limit)"
13
- readonly HISTSIZE=-1 2> /dev/null || true
13
+ HISTSIZE=-1 2> /dev/null || true
14
14
15
15
# "Non-numeric values and numeric values less than zero inhibit truncation"
16
- readonly HISTFILESIZE=' unlimited' 2> /dev/null || true
16
+ HISTFILESIZE=' unlimited' 2> /dev/null || true
17
17
18
18
# Use a custom history file location so history is not truncated
19
19
# if the environment ever loses this "eternal" configuration.
20
20
HISTDIR=" ${XDG_STATE_HOME:- ${HOME?} / .local/ state} /bash"
21
21
[[ -d ${HISTDIR?} ]] || mkdir -p " ${HISTDIR?} "
22
- readonly HISTFILE=" ${HISTDIR?} /history" 2> /dev/null || true
22
+ HISTFILE=" ${HISTDIR?} /history" 2> /dev/null || true
You can’t perform that action at this time.
0 commit comments