From 7f2b4122795908018c4d778e83c89e30f80c178f Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 27 Sep 2024 17:54:36 +0200 Subject: [PATCH] scripts/tmuxs: disable preview in fzf --- scripts/tmuxs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/tmuxs b/scripts/tmuxs index 9194bf2..28e03dc 100755 --- a/scripts/tmuxs +++ b/scripts/tmuxs @@ -1,14 +1,16 @@ #!/usr/bin/env bash +FZF="fzf --preview=" + if [[ $# -eq 1 ]]; then if [[ "$1" -eq "-a" ]]; then - selected=$(tmux list-sessions | fzf | sed 's/: .*//g') + selected=$(tmux list-sessions | $FZF | sed 's/: .*//g') else selected=$(realpath $1) fi else DIRECTORIES=$(cat ~/.tmuxs | sed "s&^\~&${HOME}&g") - selected=$(find ${DIRECTORIES} -mindepth 1 -maxdepth 1 -type d | fzf) + selected=$(find ${DIRECTORIES} -mindepth 1 -maxdepth 1 -type d | $FZF) fi if [[ -z $selected ]]; then