mirror of https://github.com/kianby/dotfiles
bad snippet configuration. Doesn't work in SSH session
parent
d0f3684cd5
commit
e63f6ecc51
@ -1,8 +0,0 @@
|
|||||||
# edit single line snippet
|
|
||||||
cfg-snippetrc() { $EDITOR ~/.snippetrc ;}
|
|
||||||
|
|
||||||
fzf-snippet() {
|
|
||||||
selected="$(cat ~/.snippetrc | sed '/^$/d' | sort -n | fzf -e -i )"
|
|
||||||
# remove tags, leading and trailing spaces, also no newline
|
|
||||||
echo "$selected" | sed -e s/\;\;\.\*\$// | sed 's/^[ \t]*//;s/[ \t]*$//' | tr -d '\n' | xclip -selection clipboard
|
|
||||||
}
|
|
Loading…
Reference in New Issue