diff --git a/.bashrc b/.bashrc index 2b0c202..207b031 100644 --- a/.bashrc +++ b/.bashrc @@ -217,33 +217,7 @@ _cli_qol_() { curl -s https://ohmyposh.dev/install.sh | sudo bash -s -- -d /usr/bin/ fi -} - -_fzf_(){ -# source /usr/share/doc/fzf/examples/completion.bash -if [ -f ~/.fzf.bash ]; then - . ~/.fzf.bash -else - echo_error "fzf completion script not found in ~/.fzf.bash" -fi -if [ -f /etc/bash_completion ]; then - . /etc/bash_completion -fi -source /usr/share/doc/fzf/examples/key-bindings.bash -# ─< Use fzf for completion >───────────────────────────────────────────────────────────── -bind -x '"\t": fzf-completion' -bind -x '"\C-i": fzf-completion' -} - -_fzf_comprun() { - local command=$1 - shift - case "$command" in - cd) fzf --preview 'tree -C {} | head -200' "$@" ;; - export|unset) fzf --preview "eval 'echo \$'{}" "$@" ;; - ssh) fzf --preview 'dig {}' "$@" ;; - *) fzf --preview 'bat -n --color=always {}' "$@" ;; - esac + [[ -f $HOME/.src/ble.sh ]] && . $HOME/.src/ble.sh } # ─< t stands for trash(-cli) >─────────────────────────────────────────────────────────────── @@ -480,7 +454,6 @@ get_alias() { _defaults_ _color_prompt_ _cli_qol_ - _fzf_ _cat_ _trash _nmap_ @@ -499,5 +472,5 @@ main() { get_packager get_alias } - main +[[ ${BLE_VERSION-} ]] && ble-attach