diff options
Diffstat (limited to 'config/lf/lfrc')
-rw-r--r-- | config/lf/lfrc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/config/lf/lfrc b/config/lf/lfrc index 138c470..880ea97 100644 --- a/config/lf/lfrc +++ b/config/lf/lfrc @@ -5,16 +5,12 @@ set ifs "\n" set promptfmt "\033[1;31m%u\033[0;32m@\033[1;34m%h\033[0m:\033[1;36m%w/\033[0m\033[1m%f\033[0m" # cmds -cmd open ${{ - opener $f -}} - cmd ttmsh ${{ - TTMURL="curl -F 'file=@-' https://ttm.sh < $f" + TTMURL="$(curl -F 'file=@'$f https://ttm.sh)" if [ -n "$TTMURL" ]; then echo "$TTMURL"|tee "$HOME/ttmsh"|xclip -r - done - notify-send 'successfully uploaded to ttm!' 'link copied to selection, backup is in $HOME/ttmsh' + notify-send 'successfully uploaded to ttm!' 'link copied to selection, backup is in $HOME/ttmsh' + fi }} cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1 |