diff rc/bashrc @ 658:35c26d9dcaa7

Upload file for 0paste alias
author nanaya <me@nanaya.pro>
date Sun, 28 Nov 2021 20:05:47 +0900
parents 4c30afd0451f
children 71254a6ddb4c
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