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