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
1111if [[ -f $_bash_it_ble_path ]]; then
1212 # shellcheck disable=1090
1313 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
1418else
1519 _log_error " Could not find ble.sh in $_bash_it_ble_path "
1620 _log_error " Please install using the following command:"
Original file line number Diff line number Diff line change 55cite about-plugin
66about-plugin ' load fzf, if you are using it'
77
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
1517
1618# No need to continue if the command is not present
1719_command_exists fzf || return
Original file line number Diff line number Diff line change 1010# truncating the history file early.
1111
1212# "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
1414
1515# "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
1717
1818# Use a custom history file location so history is not truncated
1919# if the environment ever loses this "eternal" configuration.
2020HISTDIR=" ${XDG_STATE_HOME:- ${HOME?} / .local/ state} /bash"
2121[[ -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