Skip to content

Commit 4dd4248

Browse files
committed
[bin/txt] Add script to fuzzy search src/txt
1 parent 6a37061 commit 4dd4248

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bin/txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
if [[ ! -t 1 ]]; then
4+
exec alacritty --command zsh -lic txt
5+
fi
6+
7+
FILE=`(cd ~/src/txt && fzf)`
8+
9+
if [[ -z $FILE ]]; then
10+
exit 0
11+
fi
12+
13+
exec vim ~/src/txt/"$FILE"

0 commit comments

Comments
 (0)