blob: 94c2bf84571cccdb40e1486b26fc9922443038a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
file=$FZF_FILE_MARKS
temp=/tmp/.fzf-fmarks.tmp
realpath "$1" && realpath "$1" >> "$file";
sed -i "s|$HOME|~|g" "$file";
awk '!visited[$0]++' "$file" > "$temp" \
&& sort "$temp" > "$file";
rm -f "$temp";
|