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