Skip to content

Commit 05a1d9d

Browse files
committed
set -Eeuo pipefail
1 parent 10ecd5e commit 05a1d9d

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

eee-find.sh

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
#!/usr/bin/env bash
2+
set -Eeuo pipefail
23

34
CURR_DIR=$(dirname $(readlink -f $0))
45
. ${CURR_DIR}/eee-common.sh
56

67
INITIAL_QUERY="$1"
78

8-
fd --type f --type l --hidden --exclude .git --exclude target | devicon-lookup -i -c |\
9+
fd --type f --type l --hidden --exclude .git --exclude target | devicon-lookup -i -c |
910
fzf \
10-
--query "$INITIAL_QUERY" \
11-
--border \
12-
--layout reverse \
13-
--exact \
14-
--ansi \
15-
--cycle \
16-
--color "border:#A15ABD" \
17-
--header-first \
18-
--header "CWD:$(pwd) " \
11+
--query "$INITIAL_QUERY" \
12+
--border \
13+
--layout reverse \
14+
--exact \
15+
--ansi \
16+
--cycle \
17+
--color "border:#A15ABD" \
18+
--header-first \
19+
--header "CWD:$(pwd) " \
1920
--preview 'filename={}; bat -n --color=always ${filename:2}' \
2021
--preview-window 'right,60%,border-bottom,wrap,+{2}+3/3,~3' \
2122
--bind "${FZF_BINDS}" \
2223
--bind 'ctrl-/:change-preview-window(down|hidden|)' \
2324
--bind 'ctrl-d:change-prompt(Directories> )+reload(find * -type d)' \
2425
--bind 'ctrl-f:page-down,ctrl-b:page-up' \
2526
--bind 'ctrl-u:change-prompt(Directories> )+reload(find $(dirname $(pwd)) -type d)' |
26-
xargs -0 -I{} bash -c 'filename_with_icon="{}"; filename="${filename_with_icon:2}"; echo "${filename}"' \
27-
| xargs -0 -I{} realpath {}
27+
xargs -0 -I{} bash -c 'filename_with_icon="{}"; filename="${filename_with_icon:2}"; echo "${filename}"' |
28+
xargs -0 -I{} realpath {}
2829

2930
# --bind 'ctrl-f:change-prompt(Files> )+reload(find * -type f)' \

0 commit comments

Comments
 (0)