Skip to content

Commit

Permalink
fix fzf command, support rofi
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
  • Loading branch information
msfjarvis authored and ibizaman committed Aug 9, 2020
1 parent f73e07a commit 9ef6e93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clip.bash
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ cmd_clip() {
local rofi_cmd="rofi -dmenu -i -p \"$prompt\""

if [ -n "$term" ]; then
fzf_cmd="$fzf_cmd -q$\"term\""
fzf_cmd="$fzf_cmd -q\"$term\""
rofi_cmd="$rofi_cmd -filter \"$term\""
fi
fzf_cmd="$fzf_cmd | tail -n1"

Expand Down

0 comments on commit 9ef6e93

Please sign in to comment.