changeset 658:35c26d9dcaa7

Upload file for 0paste alias
author nanaya <me@nanaya.pro>
date Sun, 28 Nov 2021 20:05:47 +0900
parents 91d7c2e5936c
children be98916b55df
files rc/bashrc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rc/bashrc	Sun Jul 25 21:36:52 2021 +0900
+++ b/rc/bashrc	Sun Nov 28 20:05:47 2021 +0900
@@ -282,8 +282,8 @@
 unset _rm
 
 if command -v curl > /dev/null 2>&1; then
-  alias 0p="gzip | curl 'https://0paste.com/pastes.txt' -F 'paste[paste_gzip]=<-'"
-  alias 0pp="gzip | curl 'https://0paste.com/pastes.txt' -F 'paste[is_private]=1' -F 'paste[paste_gzip]=<-'"
+  alias 0p="gzip | curl 'https://0paste.com/pastes.txt' -F 'paste[paste_gzip]=@-'"
+  alias 0pp="gzip | curl 'https://0paste.com/pastes.txt' -F 'paste[is_private]=1' -F 'paste[paste_gzip]=@-'"
 fi
 
 if command -v tmux > /dev/null 2>&1; then