From c174bb98e8d021707c34240cfd0f3ff1de58b4e2 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sun, 13 Oct 2024 23:16:23 +0200 Subject: [PATCH] Only run ble.sh in TMUX --- bashrc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bashrc b/bashrc index a898cdf..5cb40c2 100644 --- a/bashrc +++ b/bashrc @@ -4,7 +4,9 @@ case $- in *) return;; esac -source ~/.local/share/blesh/ble.sh --noattach +if [[ $TERM =~ tmux ]]; then + source ~/.local/share/blesh/ble.sh --noattach +fi # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options @@ -53,11 +55,13 @@ alias ls="eza -1 -l --icons=auto --git-repos --git -h -g -o --no-permissions" alias lsa="eza -1 -l --icons=auto --git-repos --git -h -g -o --no-permissions -a" alias lss="eza -1 -l --icons=auto --git-repos --git -h -g --total-size -o --no-permissions -a" -source ~/.fzf.bash -eval "$(zoxide init bash)" -eval "$(starship init bash)" -[[ ! ${BLE_VERSION-} ]] || ble-attach +if [[ $TERM =~ tmux ]]; then + source ~/.fzf.bash + eval "$(zoxide init bash)" + eval "$(starship init bash)" + [[ ! ${BLE_VERSION-} ]] || ble-attach +fi # TMUX if [[ ! $TERM =~ tmux ]]; then